Le mer. 29 août 2012 01:44:48 CEST, Rajagopal Swaminathan a écrit: > Greetings, > > On Wed, Aug 29, 2012 at 1:36 AM, <m.roth at 5-cent.us> wrote: > > > > I've never been that good with cut. I'm going to see the author, Dave > > Ihnat this weekend, who sometimes shows up here... but in the meantime, > > you might use > > awk 'BEGIN {FS=",";}{print $2 "," $3 "," $1;}' infile > > > > I tried it on an xp box with GnuWin32 binaries. It barked some error > showing the single quote. > > I will try on a centos box later (<grin>which I am silently injecting > [installing] into that env after handwaving the xp</grin>). You can also try with bash : while IFS="," read A B C ; do echo "$B,$C,$A" ; done < infile Regards, -- Philippe Naudin