//View Tip #96
Similar Tips
» Command line currency conversion
» Find words in garbled text
» Get real names of current users
» Manipulate Bash sockets using /dev/tcp
» Bash fork bomb


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
A slight improvement to #64 -- drops one grep and adds line numbers

find _path_to_start_ -name '*.php' | xargs egrep -nC3 'TODO|HACK' | less

View Comments »


Add your comment

Comments are currently disabled
don't use xargs, it sucks and is unnecesary:

 find _path_to_start_ -name '*.php' -exec egrep -nC3 'TODO|HACK' {} ';' | less
Posted 2009-02-07 19:41:05

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit