How can I extract all the contents of a file which comes after a given line ? The line can be matched by exact contents or regular expression.
|
feedback
|
awk 'BEGIN { found=0; } /RE GOES HERE/ { found = 1; } found { print; }' $filename
Avoids multiple file traversals, so should (possibly) perform better for large files where the match is towards the end of the file. | |||
|
feedback
|
| |||||||||
feedback
|