UNIX Interview Questions In the text file, some lines are delimited by colon and some are delimited by space. Write a command to print the third field of each line. 26 June 2017 Justin Comment(0) awk ‘{ if( $0 ~ /:/ ) { FS=”:”; } else { FS =” “; } print $3 }’ filename