Sunday 2 October 2011

Useful script for greping all files excluding those that match specific pattern

grep -Pn 'Win_' `ls -1 *.ahk | grep -vPi 'Win|recall.*ahk' | awk '{printf $1 " "}'`