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