[Gllug] rm -R not working on Fedora

Benedikt Heinen gllug at ml.icemark.net
Fri Feb 11 21:41:02 UTC 2005


>> 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

It can't... Not in the way listed.

If at the end all the html files had 644 permissions, they had it from the 
start.


(just to be sure, I even tried it, simply because I couldn't believe it 
would have done...)




   Benedikt

--
 	It seems I think I am, therefore it seems I am, I think!
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list