in reply to Using grep to pick out lines in a text file
open( INPUTFILE, "<WordNet.txt" ) or die "$!"; open( OUTPUTFILE, ">>WordNetTest2.txt" ) or die "$!"; grep { /adj:/ and print OUTPUTFILE $prev,$_;$prev=$_ } (<INPUTFILE>) +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using grep to pick out lines in a text file
by lostjimmy (Chaplain) on Dec 19, 2008 at 16:28 UTC |