in reply to Re: Copy rows of file to new document
in thread Copy rows of file to new document
My folder of files is 'c:\vehicles'. The file I want to write to is 'vehicles.txt' and located in 'c:\'. I tried the following code work for what you suggested. I know I've written it wrong. What should I do to correct it?
C:\vehicles $ ls -A | xargs head -qn 30 | perl -Mstrict -wne 'if( $ + +_ =~ /(make)|(model)|(year)/ ) { print "$_"; }' > vehicles.txt grep -rE "(make|model|year)" c:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Copy rows of file to new document
by BrowserUk (Patriarch) on Jan 25, 2013 at 07:39 UTC | |
|
Re^3: Copy rows of file to new document
by tmharish (Friar) on Jan 25, 2013 at 06:24 UTC | |
by phineas629 (Novice) on Jan 25, 2013 at 06:48 UTC | |
by erix (Prior) on Jan 25, 2013 at 09:28 UTC |