Toby Inkster wrote:
> Roy Schestowitz wrote:
>
>> -r will not decent to higher-level (parent) diretories
Dammit, typo... "descent".
> Oh yes it will!
>
> Long time ago, I wanted to delete all the hidden files in a directory, so
> ran:
>
> rm -rf .*
>
> Ouch!
>
> (Hint: the ".*" pattern matches "..".)
Ouch indeed. I hope you had backups. I usually try rm -r before I try -rf. I
want to see the warnings before I discard them. If they did not serve a
purpose, -f would have been assumed.
Roy
--
Roy S. Schestowitz
http://Schestowitz.com
|
|