Jon Nelson wrote: > Please let this be taken as constructive criticism. > Of the three solutions posted, this one is the safest. > One of the other two (Per Jesson's) did not handle situations in which > the name of the file contained spaces in its name. Instead of using:
Very true, thanks. I guess I've made a habit of not using spaces in filenames :-) > The only real difference between using -exec (my favored method) and > xargs is that with xargs you can have multiple files deleted per 'rm' > invocation - if you are deleting /lots/ of files this can be an issue. Yes, you could be running out of space on the command-line - 32K is the bash default I think. I started out using -exec some years back, but quickly switched to xargs or piping into 'while read f; do .... ; done'. /Per Jessen, Zürich (0.93 °C) -- http://www.spamchek.com/ - managed anti-spam and anti-virus solution. Let us analyse your spam- and virus-threat - up to 2 months for free. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
