*nix - deleting all files in a folder (0000’s)
Tuesday, May 8th, 2007When ‘rm’ says ‘too many arguments’, use the following to erase all the files in a folder:
find . -type f -print | xargs -n 20 rm
When ‘rm’ says ‘too many arguments’, use the following to erase all the files in a folder:
find . -type f -print | xargs -n 20 rm