Awk: Count number of occurences of a string in a file By admin Posted on September 30, 2014 Posted in Unix Tagged with awk, unix awk -F ‘{print NF-1}’ e.g.: awk -F: ‘{print NF-1}’ SUMM_DQ_KEY_ISSUE.osh