Hi,
I can select all the even columns from a file like this:
How can I select the 1st and all the even columns using awk? Thanks!
I can select all the even columns from a file like this:
Code:
awk '{ for (i=1;i<=NF;i+=2) $i="" }1' file > new file