[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] perl instead of cut -f 2,3,1




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