grepNocomments.awk Example call: grep name *.cc | awk -F ":" '{if (substr($3,1,1)!="/") print $0;}'