Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!cs.utexas.edu!uunet!email!swdsrv.edvz.univie.ac.at!heinz From: heinz@cc.univie.ac.at Newsgroups: comp.unix.shell Subject: Re: Stupid question... Message-ID: Date: 28 May 91 07:13:48 GMT References: <1991May27.225630.18310@watdragon.waterloo.edu> <29957@hydra.gatech.EDU> Sender: news@swdsrv.edvz.univie.ac.at Organization: Vienna University Computer Center Lines: 38 Nntp-Posting-Host: sophie.pri.univie.ac.at In <29957@hydra.gatech.EDU> gt5223b@prism.gatech.EDU (Doug Berkland) writes: >Along the lines of hard to remove files... is there any way to remove >a file beginning with a - ? Using \- doesn't get it... any ideas? [Signature deleted] No problem . $ echo > -a $ ls -l total 54 -rw-r--r-- 1 heinz 1 May 28 09:14 -a -rwxr-xr-x 1 heinz 24576 May 13 1990 b -rw-r--r-- 1 heinz 311 May 13 1990 b.c -rwxr-xr-x 1 heinz 24576 May 13 1990 c -rw-r--r-- 1 heinz 139 May 13 1990 c.c drwxr-xr-x 3 heinz 3072 May 27 12:38 junk1 $ rm - -a $ ls -l total 53 -rwxr-xr-x 1 heinz 24576 May 13 1990 b -rw-r--r-- 1 heinz 311 May 13 1990 b.c -rwxr-xr-x 1 heinz 24576 May 13 1990 c -rw-r--r-- 1 heinz 139 May 13 1990 c.c drwxr-xr-x 3 heinz 3072 May 27 12:38 junk1 $ ^D Generally, a single '-' on the command line signals the end of the option list. There may be programs where this trick doesn't work.When in doubt, just try it.. Greetings, HH -- -------------------------------------------------------------------------------- ---/ Heinz M. Herbeck / Trust me, I know / /- --/ heinz@sophie.pri.univie.ac.at / what I'm doing ! / /-- -/ Vienna University, Austria / (Sledge Hammer) / /--- --------------------------------------------------------------------------------