On Saturday, Nov 1, 2003, at 18:40 Europe/Brussels, Jeff Westman wrote:


SilverFox <[EMAIL PROTECTED]> wrote:
hey guys, i'm trying to grep some data from a log file and getting the
following error. Any ideas???

[EMAIL PROTECTED] perl -e 'grep \"Eliminating movie\" update.log |awk {'print
\$5'}';


Can't find string terminator '"' anywhere before EOF at -e line 1.

You're mixing perl up with shell!


Maybe what you are trying to do is:
  grep "Eliminating movie" update.log | awk '{ print $5'}'

Or if you want this in perl, then you certainly would not be using 'grep' and
not make a SYSTEM call to awk.


???


perl -lane 'print $F[4] if /Eliminating movie/' update.log


Jerry


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to