I am writing an AWK script which takes a list of dates and formats it into an easier to read list. I was able to do that no problem.
The real problem is this. After displaying the list, I want to display how many times "2010" appears in the text file.
How do I do this? I've been searching for days and I've come up with absolutely nothing.
awk -F"2010" 'NF>0 { count += NF-1 } END { print 0+count }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With