iqbal
asked Sep 19 2018
Answer
Try using the following command
truncate -s 0 directory-name/* &> /dev/null
gokulravichandran2
asked Sep 19 2018
edited Oct 30 2018
truncate -s 0 directory-name/* &> /dev/null
empty the contents of all files
Please Help me with this. I want to know
How to empty the contents of all files in a directory?
Thank you