[Omaha.pm] perl instead of cut -f 2,3,1
Andy Lester
andy at petdance.com
Tue Apr 17 15:10:38 PDT 2012
On Apr 17, 2012, at 12:58 PM, Jay Hannah wrote:
> Perl field numbering starts at zero instead of one. This should give you want you wanted:
>
> perl -anE 'say join "\t", @F[1,2,0]' inputfile.txt
And you can use the -F option to specify what the field separator should be.
xoa
--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20120417/b00b5d02/attachment.html>
More information about the Omaha-pm
mailing list