Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: How to delete "-h.tgz" ???
- To: tlug@example.com
- Subject: Re: tlug: How to delete "-h.tgz" ???
- From: Felix Morley Finch <felix@example.com>
- Date: Wed, 23 Sep 1998 05:29:07 -0700 (PDT)
- In-Reply-To: <13832.42978.255281.333613@example.com> (message from Stephen J. Turnbull on Wed, 23 September 1998 16:48:50 +0900)
- References: <3.0.6.32.19980921192155.009c19d0@example.com><199809212139.VAA00258@example.com><13832.42978.255281.333613@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
>>In article <13832.42978.255281.333613@example.com>, "Stephen J. Turnbull" <turnbull@example.com> writes: >>>>> "Karl-Max" == Karl-Max Wagner <karlmax@example.com> writes: >>> I just typed "gzip -h" assuming I'd get a list of >>> options. Instead it created a file called "-h.tgz". >>> >>> These commands told me -h is not a legal option: rm -h.tgz rm >>> "-h.tgz" mv -h.tgz h.tgz >>> >>> Any idea how I get rid of this file? Karl-Max> Escape the "-" with a "\" in front. > This can't work because the \ is a shell escape, and it's rm that's > interpreting the - as a switch. Protect the '-' with './' --- rm ./-h.tgz Sometimes (but not with the rm I just tried it on) options aren't looked for after the first file name (does NOT work here :-) touch xyz; rm xyz -h.tgz Sometimes '--' signifies end of optiosn (DOES work here): rm -- -h.tgz But the ./-h.tgz is the classic answer. -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman & rocket surgeon / felix@example.com PGP = 91 B3 94 7C E9 E8 76 2D E1 63 51 AA A0 48 89 2F ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o --------------------------------------------------------------- Next Meeting: 10 October, 12:30 Tokyo Station Yaesu central gate Next Nomikai: 20 November, 19:30 Tengu TokyoEkiMae 03-3275-3691 --------------------------------------------------------------- Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp
- Follow-Ups:
- Re: tlug: How to delete "-h.tgz" ???
- From: "Stephen J. Turnbull" <turnbull@example.com>
- References:
- tlug: How to delete "-h.tgz" ???
- From: Darren Cook <darren@example.com>
- Re: tlug: How to delete "-h.tgz" ???
- From: Karl-Max Wagner <karlmax@example.com>
- Re: tlug: How to delete "-h.tgz" ???
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: tlug: Re: Linux taking over the globe?
- Next by Date: Re: tlug: How to delete "-h.tgz" ???
- Prev by thread: Re: tlug: How to delete "-h.tgz" ???
- Next by thread: Re: tlug: How to delete "-h.tgz" ???
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links