Skip to content

Instantly share code, notes, and snippets.

@miend
Created November 13, 2012 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miend/4067865 to your computer and use it in GitHub Desktop.
Save miend/4067865 to your computer and use it in GitHub Desktop.
Copy all files matching grep pattern to target directory
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