Bubble Foundry


pgrep

by Peter.

I do lots of searching through source code with grep, so I wrote a little helper:
#!/bin/bash
if [ -z "$1" ]; then
echo usage: $0 query
exit
fi
grep -r $1 . | less

I added the following line to my .profile and now I can call it easily from anywhere:
alias pgrep="bash /Users/peter/pgrep"