I have directory which contains millions of files of small size (output from a big data program). I need to delete those directories but when I type the standard
rm * I get:
zsh: sure you want to delete more than 100 files in data/output [yn]? y zsh: argument list too long: rm
The files all have the same prefix with a unique number appended after like this
data-12343 data-12344 ... etc
So I can't even use regular expressions to trash the files in a piecemeal way. Looking for advice and tips on how to do this efficiently and in an automated way.