Created
July 10, 2012 06:35
-
-
Save emmasteimann/3081602 to your computer and use it in GitHub Desktop.
Find all files with string and copy to another directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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