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

Published
Categorized as geek Tagged ,