以,号间隔的多列,如何互换位置??谢谢

以,号间隔的多列,如何互换位置??谢谢

比如 有文件如下:
aaa,111,ccc,ddd
222,bbb,ddd,eee


改成
aaa,ccc,111,ddd
222,ddd,bbb,eee      
复制内容到剪贴板
代码:
[color=blue]-(guest@mac:tty1)-(tmp)-
[18736 0] %[/color] echo 11 22 33 44 | awk '{ tmp = $1; $1 = $3; $3 = tmp; print; }'
33 22 11 44
[color=blue]-(guest@mac:tty1)-(tmp)-
[18736 0] %[/color]
      
牛的,谢谢dearvoid  。      
[CODE]
  echo aaa,ccc,111,ddd | awk -F, '{print $1","$3","$2","$4}'
[/CODE]
      
seems much simpler than mine