Tips tagged grep


11

Tip #93   Subtract one file from another

Subtract a small file from a bigger file.

Read more »

5

Tip #96   Find occurrences of a string in a large code base without firing

A slight improvement to #64 -- drops one grep and adds line numbers

Read more »

5

Tip #117   Find function declarations in PHP or JavaScript

function findfunc {
grep -R $1 * 2> /dev/null |grep function|grep -v .svn
}
Read more »

14

Tip #147   Find and Grep

Find all files with given name (you can use Bash expansion if you'd like), and Grep for a phrase:
Read more »