Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Linux command to delete all index.htm file

  • Subject: Re: Linux command to delete all index.htm file
  • From: Blinky the Shark <no.spam@box.invalid>
  • Date: 15 Apr 2005 09:30:11 GMT
  • Newsgroups: alt.www.webmaster
  • Organization: http://blinkynet.net
  • References: <1113553287.779133.120210@f14g2000cwb.googlegroups.com> <d3nupn$2mar$1@godfrey.mcc.ac.uk> <slrnd5uvug.o71.no.spam@thurston.blinkynet.net> <Xns963965C619EECmecharlessweeneycom@130.133.1.4>
  • User-agent: slrn/0.9.8.1 (Linux)
  • Xref: news.mcc.ac.uk alt.www.webmaster:262230
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

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index