Even though the cut man page says
       The  order of bytes, characters or fields in the output will be identi-
       cal to those in the input.  With no FILE, or when FILE is -, read stan-
       dard input.
But still I think
$ echo a,b,c,d|cut -d, -f 3,4
c,d
$ echo a,b,c,d|cut -d, -f 4,3
c,d

Is dumb.  Add another switch to do rearranging.  Yes,
awk -F, 'BEGIN{OFS=","};{print $4,$3}'
will work, but then of course the entire cut command could just be
made into a one line alias calling awk in the first place...
-- 
http://jidanni.org/ Taiwan(04)25854780


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to