User Tools

Site Tools


file:swap_fields_in_a_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

file:swap_fields_in_a_file [2016/07/10 17:51] – created peterfile:swap_fields_in_a_file [2019/11/27 21:30] (current) – removed peter
Line 1: Line 1:
-====== File - Swap fields in a file ====== 
- 
-Swap the first 2 fields. 
- 
-<code bash> 
-awk '{tmp = $1; $1 = $2; $2 = tmp; print}' filename 
-</code> 
  
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