On Jul 21, 12:05 pm, jimsgib...@gmail.com (Jim Gibson) wrote: > On 7/21/10 Wed Jul 21, 2010 11:51 AM, "Vaughan Williams" > <vaughan...@gmail.com> 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/