Skip to content

Instantly share code, notes, and snippets.

@emmasteimann
Created July 10, 2012 06:35
Show Gist options
  • Save emmasteimann/3081602 to your computer and use it in GitHub Desktop.
Save emmasteimann/3081602 to your computer and use it in GitHub Desktop.
Find all files with string and copy to another directory
find . -type f -exec grep -q "Emma" '{}' ';' -exec cp '{}' ../emma ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment