2
I'm trying to empty lots of files under a certain folder.
>file
or cat /dev/null > file
or echo "" > file
can empty file.
find . -type f -exec blahblah {} \;
can find files and do something on them.
I tried to use the >
operator in find ... -exec
but the result is different to what I expected.
Is there a way to use >
operator in the find
command?
1Ouch! My head! How I can't remember that :) Thank you. – Sencer H. – 2014-02-11T14:42:47.793