How to copy directory and file structure with zero length files
I've been trying to solve a problem in Linux that is beyond my skill set. Basically I need to copy an entire folder and file structure but have all the files reduced to zero length and keeping the same filename. Rsync and cp seem to be missing the feature, but I'm thinking a Bash script could do the the trick if I can get the recursion right.
Anybody tackled this before? For reference, the equivalent command in Windows is ROBOCOPY (source) (dest) /E /CREATE