I’d like to do this in OS X:
ls -rt | xargs rm -i
However, rm is choking on the fact that some of the files have whitespaces.
I mention OS X because BSD’s version of ls does not have a -Q flag.
Is there a way to do this without having to use find -print0?
Try this