Swap columns in text file with awk By Nekkox 3:33 PM awk, column, swap No comments To swap column 2 and 3 in a 4 column file: awk -F, '{print $1,$3,$2,$4}' OFS=; "FILE" > NEW_FILE where: OFS: indicates the separator character(';' in the example above). FILE: original file. NEW_FILE: new file with the changes. Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook Related Posts:Swap columns in text file with awk
0 comments:
Post a Comment