On Thu, Jul 10, 2014 at 09:50:22AM +0200, Steffen Schuler wrote: | The following command | | $ echo a,b | cut -d , -f 2,1 | prints | | a,b | | instead of | | b,a
cut(1) doesn't reorder fields. Use awk(1) instead:
$ echo a,b | awk -F, '{print $2 "," $1}'
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/
