Thursday, December 17, 2015

To get the lines between the two pattern in a file in BOSS Linux



To get the lines between the two pattern in a file.txt use the following sed command format



sed -n "/pattern1/,/pattern2/p" file.txt

No comments:

Post a Comment

jq command in Linux

 How to access the {"field-name":"cskmetro"} echo "{\"field-name\":\"cskmetro\"}" |jq -r ...