Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: awk like question in perl

by drock (Beadle)
on Aug 11, 2004 at 21:13 UTC ( #382095=note: print w/replies, xml ) Need Help??

in reply to Re: awk like question in perl
in thread awk like question in perl

ok so how would I use this against a perl script ? is it
perl -na 'print "@F[0,1,5]\n"'

Replies are listed 'Best First'.
Re^3: awk like question in perl
by Aristotle (Chancellor) on Aug 11, 2004 at 21:31 UTC

    No. You'd either pipe the output of one script through the other:

    perl | perl -nae'print "@F[0,1,5]\n"'

    which is the same as doing it with awk.

    Or you'd have to edit to change the statements that print its output to do what you want.

    Makeshifts last the longest.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://382095]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-09-26 10:19 GMT
Find Nodes?
    Voting Booth?

    No recent polls found