2011年9月5日 星期一

awk command

Count number of occurence of "##" in a.htm:
  awk -F'[##]' 'NF> 1{t+=NF-1}END{print t}' a.htm

沒有留言:

張貼留言