home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3813 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!chester.ksu.ksu.edu!news
  2. From: probreak@chester.ksu.ksu.edu (James Michael Chacon)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: How can I rm a file with a '&' ????
  5. Date: 4 Sep 1992 01:19:59 -0500
  6. Organization: Kansas State University
  7. Lines: 26
  8. Message-ID: <186v6fINNb71@chester.ksu.ksu.edu>
  9. References: <1992Aug24.081355.6563@physiol.su.OZ.AU> <1992Aug27.111454.9889@mr.med.ge.com> <1992Sep02.115715.11415@cadlab.sublink.org>
  10. NNTP-Posting-Host: chester.ksu.ksu.edu
  11.  
  12. albani@cadlab.sublink.org (Lanfranco Albani) writes:
  13.  
  14. >hinz@picard.med.ge.com (David Hinz Mfg 4-6987) writes:
  15. >:Well, the following works on MY system (Sun 4.1.1):
  16. >:
  17. >:rm 'big&cow'
  18. >:
  19. >:as someone else had mentioned.  Perhaps NOGLOB has to be set, though.
  20.  
  21. In csh, this works fine:
  22.  
  23. 1:17am:chester:/tmp>cat > big\&cow
  24. lll1:17am:chester:/tmp>ls big*
  25. big&cow
  26. 1:17am:chester:/tmp>rm big\&cow
  27. 1:17am:chester:/tmp>ls big*
  28. ls: No match.
  29. 1:17am:chester:/tmp>
  30.  
  31. Just remember most funny characters can be replaced with \(funny char) 
  32.  
  33.  
  34. -----------------------                              ---------------------------
  35. -Oh the joy of finding-       James Chacon           -probreak@matt.ksu.ksu.edu-
  36. -That last pizza slice-                              ---------------------------
  37. -----------------------                     ---------------------------
  38.