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
In reply to perl and awk by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |