User Tools

Site Tools


file:swap_fields_in_a_file

This is an old revision of the document!


File - Swap fields in a file

Swap the first 2 fields.

awk '{tmp = $1; $1 = $2; $2 = tmp; print}' filename
file/swap_fields_in_a_file.1468173067.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki