Matthew Seaman <freebsd-questi...@infracaninophile.co.uk> wrote: > >>> ls -1 | xargs rm > > >> but be aware that that wont work for filenames with spaces. > > True. Can't do that using ls to generate the list of filenames as > there is no option to generate a null-separated list amongst ls's > multitudinous collection.
It can, however, be done indirectly :) $ ls -1 | tr '\012' '\000' | xargs -0 rm _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"