Skip to content

Instantly share code, notes, and snippets.

@joestringer
Forked from samweston/gist:3870696
Created October 11, 2012 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joestringer/3870899 to your computer and use it in GitHub Desktop.
Save joestringer/3870899 to your computer and use it in GitHub Desktop.
grrrrrrrrrrrr.
function gr()
{
if [ "$#" == "1" ]
then
grep -r $* .
elif [ "$#" -ge "2" ]
then
grep -r $*
else
echo ">.<"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment