I'm trying to find a way to grep how many messages in a file are older than 14 days
and have a value of number of results return
Example going with today's date of 20160616
. $grep 'Put Date' filename
:
Put Date :'20160425'
Put Date :'20160501'
Put Date :'20160514'
Put Date :'20160609'
Put Date :'20160610'
Put Date :'20160616'
The results should see the following are older than 14 days and would return 3
:
Put Date :'20160226'
Put Date :'20160501'
Put Date :'20160514'