Re [Gllug] rm -R not working on Fedora
Russell Howe
rhowe at wiss.co.uk
Sat Feb 19 01:40:03 UTC 2005
On Fri, Feb 11, 2005 at 10:59:45PM +0000, Tethys wrote:
> find . -type f -name "*.php.bak" -print0 | xargs -0 /bin/rm -f
>
> You should always use that form anyway, just in case someone's added a
> filename or directory containing a space and you don't know about it.
Also, -r is a useful flag to xargs, although I don't know if it's a GNUism or
not - it means xargs will only execute said program if there is some
input to pass it as parameters.
Some programs behave quite a bit differently when run without arguments!
--
Russell Howe | Why be just another cog in the machine,
rhowe at siksai.co.uk | when you can be the spanner in the works?
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list