Using grep to pick out lines in a text fileby Bunta (Initiate)
|on Dec 19, 2008 at 02:52 UTC||Need Help??|
Bunta has asked for the
wisdom of the Perl Monks concerning the following question:
I am very, very new to Perl and programming, but have been asked by my company to learn the basics (by myself, with no texts!) to help in my job.
I am trying to pluck out all the lines containing a certain word from a large text file and copy them to a new text file.
Here is the code I used to grab all the lines containing "adj : "
Here is a sample of what the lines look like from the text file:
Thank you very much in advance for any help.