Hi Gurus,
I have a text file and need to print the lines before a regular expression and then delete them. I have the following sed oneliner which prints the lines after the regular expression. Please help me in modifying the same to achive the above.
cat test.lst | sed -n '/regexp/,$p'
Thank You!
dbadmin
I have a text file and need to print the lines before a regular expression and then delete them. I have the following sed oneliner which prints the lines after the regular expression. Please help me in modifying the same to achive the above.
cat test.lst | sed -n '/regexp/,$p'
Thank You!
dbadmin