Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!hp4nl!integow!theo From: theo@integow.uucp (Theo Hardendood) Newsgroups: comp.unix.internals Subject: Re: I have a file named "-" Message-ID: <1485@integow.uucp> Date: 4 Mar 91 19:12:52 GMT References: <128.27C67FFF@petruz.sublink.ORG> Organization: Integrity BV, Woerden, the Netherlands Lines: 27 From article <128.27C67FFF@petruz.sublink.ORG>, by zaphod@petruz.sublink.ORG (Pietro Caselli): > In an article of <26 Feb 91 05:28:22 GMT> (Benjamin H. Cowan) writes: > > > I have a file whose name consists of the single character "-". I can't > >rm it or mv it or cat it or more it or anything to it. How can I get rid > >of > >it? > > Just unlink It. > Ah, read the manual of getopt. It is recommended that all programs use these routines, and some *NIX utilities will. Utilities using the getopt() routines have an "end of options option": -- Just try: rm -- - Hope this helps Cheers, Theo Hardendood -- UUCP: ..!uunet!mcsun!hp4nl!integow!theo or theo@integow.uucp Theo Hardendood, Sr. software engineer, Integrity software consultants, Pelmolenlaan 2, 3447 GW Woerden, The Netherlands. tel +31 3480 30131, fax +31 3480 30182