in reply to
Feed ARGV into one-liner
What do you call a question which answers itself?
perl -lane ' print $F[1] if $F[1] =~ $ARGV[0] '
[download]
Comment on
Re: Feed ARGV into one-liner
Download
Code
Replies are listed 'Best First'.
Re^2: Feed ARGV into one-liner
by
Saved
(Beadle)
on Jan 21, 2010 at 14:51 UTC
But how do I give it the filename and the search value?
[reply]
Re^3: Feed ARGV into one-liner
by
Anonymous Monk
on Jan 21, 2010 at 14:56 UTC
Whooops
[reply]
In Section
Seekers of Perl Wisdom