Tuesday, February 2, 2010

Recursively copy specific files/extension from current folder down to another folder

//COPY ALL TAR.GZ FILES FROM CURRENT AND LOWER TO /HOME/
find . -name \*.tar.gz  -exec cp '{}' /home/  \;

...in this case copy all .tar.gz files from the current directory to /home/

No comments:

Post a Comment