Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi,
I have a regular command that runs fine from the command line.
find . -type f|xargs grep "Login*" 2>/dev/null | grep "2006-03-08" | p +erl -nae 'print "$F[0] $F[8]\n"'
When I run the above command I can get the 1st and 8th column.
But when I put the command in a script, the command doesnt work. Please give any suggestions.
Thank you
Edited by planetscape - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl and awk
by graff (Chancellor) on Mar 09, 2006 at 06:52 UTC | |
|
Re: perl and awk
by planetscape (Chancellor) on Mar 09, 2006 at 06:15 UTC | |
|
Re: perl and awk
by ikegami (Patriarch) on Mar 09, 2006 at 05:42 UTC |