home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3705 < prev    next >
Encoding:
Text File  |  1992-08-30  |  975 b   |  25 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!mcsun!Germany.EU.net!open.de!mailbox!teddy!germany!open!horga!ruhr.de!smallo.bo.open.de!oklein
  3. From: oklein@smallo.bo.open.de (Olaf Klein)
  4. Subject: Re: How can I rm a file with a '&' ????
  5. Organization: smallo.bo.open.de Fido-SubNet-Gate : 2:245/5800.12
  6. Date: Fri, 28 Aug 1992 19:52:27 GMT
  7. Message-ID: <1992Aug28.195227.29066@smallo.bo.open.de>
  8. References: <S025H1G@obh.in-berlin.de> <28300002@tisdec.tis.tandy.com> <1992Aug24.081355.6563@physiol.su.OZ.AU>
  9. Lines: 13
  10.  
  11. >>     You can try 'rm -i *', or you can try using a hex editor on your
  12. >> directory and changing the files name slightly, like replacing the '&'
  13. >> with an 'A', and then removing the file.
  14. >>     You could also try piping a directory listing through awk like
  15. >> this:
  16. >>     ls -l | awk '{if(index($8, "&")) system("rm " $8)}'
  17. [silly ideas erased]
  18.  
  19. Under 'csh' for a file 'a&b' simply do : `rm a\&b`
  20.  
  21. Bys, Olaf
  22.  
  23. -- 
  24. Olaf Klein     smallo.bo.open.de       2:245/5800.12
  25.