Charles Sweeney wrote:
> Blinky the Shark wrote
>> Roy Schestowitz wrote:
>>> jonathanthio@yahoo.com.sg wrote:
>>>> In a directory...
>>>> Anyone knows that?
>>>> Say I have 2000 files with index.htm as it's file name scattered
>>>> across various subdirectory. What should I do?
>>>> Should I type
>>>> rm index.htm -r
>>>> Will that do it?
>>> Test that first locally if you are not confident. Unless you run on a
>>> non-Linux machine, you should be able to build a directory within a
>>> directory and add void index.html files.
>>> If you don't use Linux, do the test on the Web server. -r will not
>>> decent to higher-level (parent) diretories, so you needn't worry.
>>> Make backups in any case.
>>> Roy
>>> PS - What is my answer? "Yes", but check to be sure.
>> BlinkyAdd: And unless one wants to be prompted to confirm deletion of
>> each 2,000 of those matching files, one should consider using the f
>> option, as well, to (f)orce the deletions.
> It should be "rm [OPTION]... FILE..."
> Shouldn't the OP use:
> rm -r index.htm
> or
> rm -fr index.htm
Yes.
--
Blinky Linux Registered User 297263
Now killing all posts originating at GoogleGroups
Information: http://blinkynet.net/comp/uip5.html
|
|