anders.petersen
New Member
Hi
I would like to know how to empty all files in a folder and subfolders. By emptying, I do not mean to delete the files but to make them have a file size of 0 Kb.
I am working on a Mac, and I am thinking that there must a command to use in Terminal to do this. I have looked a little around, and found that the command: "cat /s /dev/null > filename" will do the trick, but only for one file at a time. And I need be able to clear all files in a folder + subfolders.
Any suggestions ?
Thanks
Anders
I would like to know how to empty all files in a folder and subfolders. By emptying, I do not mean to delete the files but to make them have a file size of 0 Kb.
I am working on a Mac, and I am thinking that there must a command to use in Terminal to do this. I have looked a little around, and found that the command: "cat /s /dev/null > filename" will do the trick, but only for one file at a time. And I need be able to clear all files in a folder + subfolders.
Any suggestions ?
Thanks
Anders