How to search a file for a pattern and get a new file from the match point to end of file?

Posted by WilliamKF on Stack Overflow See other posts from Stack Overflow or by WilliamKF
Published on 2010-05-22T15:55:15Z Indexed on 2010/05/22 16:00 UTC
Read the original article Hit count: 174

Filed under:
|
|
|

I need to take a file and find the first occurrence of a literal string pattern as a complete line of the file:

Acknowledgments:

And then I wish to create a new file from the line of match all the way to the end of the file.

I expect perl is a good way to do this, but I'm not much of a perl person, alternatively maybe sed is a good way?

Please suggest a simple way to reliably accomplish this in Unix.

© Stack Overflow or respective owner

Related posts about perl

Related posts about unix