Re [Gllug] rm -R not working on Fedora

Tethys tet at createservices.com
Fri Feb 11 23:08:28 UTC 2005


"Daniel P. Berrange" writes:

>The wildcards get expanded by your shell before being passed to 'rm'. So
>if you have foo.php.bak in the current directory, then the above command
>will expand to:
>
>  rm -R foo.php.bak
>
>To avoid this, you need to quote the arguments:
>
>  rm -R '*.php.bak'

Err... no. All that will do is pass a literal *.php.bak to rm, which will
in all likelihood not find a file with that name. There is no option to
rm that will do what Gary asked for. You need to use find instead.

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list