Hi all
I need help to reorder my csv columns .
eg name uid surname to uid name surname .
Hi all
I need help to reorder my csv columns .
eg name uid surname to uid name surname .
Like this?
me@mine:/tmp> cat blah
name,uid,surname
me@mine:/tmp> IFS=,; while read -r f1 f2 f3 ;do echo "${f2},${f1},${f3}" ;done <blah
uid,name,surname