Skip to content

Instantly share code, notes, and snippets.

@kshimo69
Created August 30, 2009 13:32
Show Gist options
  • Save kshimo69/177961 to your computer and use it in GitHub Desktop.
Save kshimo69/177961 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -z "$1" ];then
echo "usage: `basename $0` keywaord"
exit 1
fi
find . -type f -print0 | xargs -0 -e grep -n -e $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment