[Gllug] rm -R not working on Fedora

Garry Heaton garry at heaton6.freeserve.co.uk
Fri Feb 11 21:34:10 UTC 2005


>Just a second - rm -R will remove everything starting from the
>files/directories given downward.

>If you want to remove selective files from a directory structure, you have
>to use a different approach - select the files with find and then proceed
>to remove them.

> 	find * -type f -name  "*.php.bak" -exec rm {} \;

> or

> 	find * -type f -name  "*.php.bak" | xargs rm

So rm -R can only be used for non-specific removals? Then how come I've used
chmod -R with wildcards to selectively modify permissions of files within
subdirectories, eg.

chmod -R 644 *.html

Garry






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




More information about the GLLUG mailing list