User Tools

Site Tools


ubuntu:file:swap_fields_in_a_file

This is an old revision of the document!


Ubuntu - File - Swap fields in a file

Swap the first 2 fields.

awk '{tmp = $1; $1 = $2; $2 = tmp; print}' filename
ubuntu/file/swap_fields_in_a_file.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki