Monthly Archives: September 2017

swapping two columns with awk keeping tabulation

Tweet Assuming you have a data file with N columns and you want to swap the first and second one, just type:

To keep the tabulation intact, you need to specify the separator. Incoming separator is defined by -F … Continue reading

Posted in Linux | Tagged | Leave a comment