//View Tip #96
Similar Tips
» Random IP addresses
» Randomize lines in a file
» Find function declarations in PHP or JavaScript
» Close shell keeping all subprocess running
» Create a Terminal Calculator


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