Created
November 13, 2012 19:34
-
-
Save miend/4067865 to your computer and use it in GitHub Desktop.
Copy all files matching grep pattern to target 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
for i in $(find /user/directory/ -name "grep-pattern"); do cp $i ~/destination/; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment