//View Tip #96
Similar Tips
» List non-system users
» Zero files
» Bash efficiency formula ;-)
» Kill matching processes
» 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 »




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