in reply to awk...ward
perl -lane "print $F[1]"
See perldoc perlrun.
Update: On Windows, you have to use double-quotes to enclose a command-line script. On Unix, there'll be a problem with the double-quotes and the dollar sign. Therefore, on Unix, I'd recommend using single-qoutes if possible; or otherwise, escape the dollar sign.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: awk...ward
by dave_the_m (Monsignor) on Feb 24, 2005 at 20:34 UTC | |
|
Re^2: awk...ward
by Fletch (Bishop) on Feb 24, 2005 at 19:45 UTC | |
by jdporter (Paladin) on Feb 24, 2005 at 20:19 UTC |