bash find email year based

for i in `find . -type f -iname ‘*[0-9]*’` ; do  head -n $(grep -m1 -n ^$ $i | awk -F : ‘{print $1}’) $i | grep “^Date.*\ 2005\ ” -q  ; if [ $? != 1 ]; then echo $PWD $i; fi ; done

Posted in Bash by admin at February 9th, 2010.

Leave a Reply