Linux Tips and Tricks

Linux Tips and Tricks

Swap the column values

August25

$ cat swap.txt
a b
c d
e f
g h
i j
k l
$ awk ‘{print $2,$1}’ swap.txt
b a
d c
f e
h g
j i
l k

 

posted under Uncategorized

Email will not be published

Website example

Your Comment:


Recent Comments

    Categories