home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!uwm.edu!ogicse!mimbres.cs.unm.edu!cs.sandia.gov!jhgreen
- From: jhgreen@cs.sandia.gov (Jethro H. Greene)
- Newsgroups: comp.unix.shell
- Subject: Re: File Problem.
- Message-ID: <1993Jan9.005821.20072@cs.sandia.gov>
- Date: 9 Jan 93 00:58:21 GMT
- References: <WRASMAN.93Jan8164326@duncan.utkcs>
- Sender: usenet@cs.sandia.gov (Another name for news)
- Distribution: comp
- Organization: Sandia National Laboratories, Albuquerque, NM
- Lines: 18
-
- In article <WRASMAN.93Jan8164326@duncan.utkcs> wrasman@duncan.utkcs (Mirror Mirror on the wall) writes:
- >I seem to have accidently created a file that starts out with
- >a - . I can't get rm to get rid of it and I can mv to another file
- >name. SO does anyone know how to get rid of a file like this.
-
- The shell thinks that when you type '-', you are giving the command options.
- You can either do:
-
- rm ./-
- --or--
- rm - -
-
- (The UNIX FAQ list would have been a good place to start.)
-
- --
- Jethro H. Greene
- Massively Parallel Computing Research Laboratory,
- Sandia National Laboratories, Albuquerque, New Mexico
-