Skip to content

Instantly share code, notes, and snippets.

@miend miend/cp-all.bash
Created Nov 13, 2012

What would you like to do?
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
You can’t perform that action at this time.