Hi,
I want to print all the lines where 3rd field (fields separated by : ) DO NOT start with # (to signify that 3rd field is a comment). Please note that there may be space(s) between : and #.
Example Input:
A:B:#hdfghdfg
A:B: #dfdfdfg
A:B:C
Desired output:
A:B:C
I tried:
awk -F : '$3 ~ /^#/ { print }' run_out5 > run_out6
but it is not working
Thanks,
Jagrati