Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 221 Bytes

swap-columns.md

File metadata and controls

16 lines (11 loc) · 221 Bytes

Swap Columns

Use awk to switch columns.

Switch columns, entire document:

:%!awk '{print $2, $1}'

Switch columns in the specified line range 10-15 inclusive:

:10,15!awk '{print $2, $1}'