Skip to content

Instantly share code, notes, and snippets.

@xlarsx
Last active December 17, 2015 04:59
Show Gist options
  • Save xlarsx/5554605 to your computer and use it in GitHub Desktop.
Save xlarsx/5554605 to your computer and use it in GitHub Desktop.
Bash: Find inside of files
#!/bin/bash
DIRECTORY=$(cd `dirname .` && pwd)
ARGUMENTS="'$@'"
echo find: $ARGUMENTS on $DIRECTORY
find . -maxdepth 5 -type f -exec grep "$@" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment