home / blog

Filtered copy and preserve directory structure

Say you had a massive, slow clearcase VOB with many filetypes, but you just wanted to copy the java files to /tmp for fast searching, and preserve the directory structure.

find . -name "*.java" | cpio --pass-through --verbose /tmp/horsecopy
This entry was posted in geek and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.