Skip to content

Instantly share code, notes, and snippets.

@paradoja
Last active August 29, 2015 13:58
Show Gist options
  • Save paradoja/9935915 to your computer and use it in GitHub Desktop.
Save paradoja/9935915 to your computer and use it in GitHub Desktop.
for i in `ls -rt DIRECTORY`; do; if [ -f DIRECTORY/$i ]; then grep -H PATTERN DIRECTORY/$i; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment