Quantcast
Channel: txt » sed
Viewing all articles
Browse latest Browse all 10

Sed Regular Expression Range

$
0
0

Print the contents of a file from a given regular expression to another


sed -n '/start/,/end/ p' file

This will print the contents of the ‘file’ from the line that matches /start/ until the line that matches /end/


Viewing all articles
Browse latest Browse all 10

Trending Articles