Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: How to delete "-h.tgz" ???



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

Of course, I made the same mistake (a little more plausibly since I
actually have written globbing code for an application program under
MS-DOS), recommending '?h.tgz' ;-)

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences        Tel/fax: +1 (298) 53-5091
---------------------------------------------------------------
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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links