User Tools

Site Tools


bash:files:swap_fields_in_a_file

BASH - Files - Swap fields in a file

Swap the first 2 fields.

awk '{tmp = $1; $1 = $2; $2 = tmp; print}' filename
bash/files/swap_fields_in_a_file.txt · Last modified: 2022/06/13 11:36 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki