User Tools

Site Tools


bash:files:display_every_line_in_a_file_between_one_string_and_another

BASH - Files - Display every line in a file between one string and another

Display lines between the match starting at “Dog” and ending at “Cat”.

awk '/Dog/,/Cat/' filename
bash/files/display_every_line_in_a_file_between_one_string_and_another.txt · Last modified: 2022/06/13 11:09 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki