This is my data stored as Exist_eutran_freqs.csv
:
120,1775
2984,1800
1942,2850
65,150
206,3050
8,1825
45,125
when I want to print them by below gawk command and switch the col1
and col2
, I'm getting below output!
Command:
gawk -F'[,]' '{print $2,$1}' Exist_eutran_freqs.csv
Output:
120
2984
1942
65
206
825
45
what is the solution for this?
-F,
or-F','
– jesse_b Dec 27 '19 at 14:28120 2984 1942 65 206 825 45 – yashar farzaneh Dec 27 '19 at 14:30
dos2unix Exist_eutran_freqs.csv
. – Kusalananda Dec 27 '19 at 14:36