On Jul 21, 12:05 pm, [email protected] (Jim Gibson) wrote: > On 7/21/10 Wed Jul 21, 2010 11:51 AM, "Vaughan Williams" > <[email protected]> scribbled: > >> ... > > > bobs 10.10.10.45 > > jims 10.10.10.34 > > jacks 10.10.10.27 > > ..... > > ..... > > perl -ane 'print join(" ",reverse(@F)),"\n"' file
A variant using the handy -l switch: perl -lane "print join ' ',reverse @F" file -- Charles DeRykus -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
