I have mirrored a directory structure but I don't care about the content of the files, I just want to keep the name and structure of everything.
How can I replace all files' (not folders) content with "nothing" (null, 1 byte, empty string or something like that)?
Best Answer
Generically,
or (courtesy of jordanm):
On a Linux system (or one with the truncate command from the GNU coreutils package):