home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5322 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.0 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!uwm.edu!ogicse!mimbres.cs.unm.edu!cs.sandia.gov!jhgreen
  2. From: jhgreen@cs.sandia.gov (Jethro H. Greene)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: File Problem.
  5. Message-ID: <1993Jan9.005821.20072@cs.sandia.gov>
  6. Date: 9 Jan 93 00:58:21 GMT
  7. References: <WRASMAN.93Jan8164326@duncan.utkcs>
  8. Sender: usenet@cs.sandia.gov (Another name for news)
  9. Distribution: comp
  10. Organization: Sandia National Laboratories, Albuquerque, NM
  11. Lines: 18
  12.  
  13. In article <WRASMAN.93Jan8164326@duncan.utkcs> wrasman@duncan.utkcs (Mirror Mirror on the wall) writes:
  14. >I seem to have accidently created a file that starts out with
  15. >a - . I can't get rm to get rid of it and I can mv to another file
  16. >name. SO does anyone know how to get rid of a file like this.
  17.  
  18. The shell thinks that when you type '-', you are giving the command options.
  19. You can either do:
  20.  
  21.     rm ./- 
  22.         --or--
  23.     rm - -
  24.  
  25. (The UNIX FAQ list would have been a good place to start.)
  26.  
  27. -- 
  28. Jethro H. Greene
  29. Massively Parallel Computing Research Laboratory,
  30. Sandia National Laboratories, Albuquerque, New Mexico
  31.