Awk: Count number of occurences of a string in a file 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 Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Related