How to get the part of file after the match

To get the part of the file after the match in bash, use the following command.

#sed -n -e '/PATTERN/,$p' filename

Where 'PATTERN' is the string to be searched.

 

Leave a Reply