Answers for "linux command print only odd columns"

0

linux command print only odd columns

awk '{for(x=1;x<=NF;x++)if(x % 2)printf "%s", $x (x == NF || x == (NF-1)?"\n":" ")}' ahj.txt
Posted by: Guest on June-08-2020

Code answers related to "linux command print only odd columns"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language