Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!phoenix.Princeton.EDU!subbarao From: subbarao@phoenix.Princeton.EDU (Kartik Subbarao) Newsgroups: comp.unix.shell Subject: Re: Stupid question... Message-ID: Date: 28 May 91 00:48:35 GMT References: <1991May27.225630.18310@watdragon.waterloo.edu> Sender: news@idunno.Princeton.EDU Reply-To: subbarao@phoenix.Princeton.EDU (Kartik Subbarao) Organization: American Chemical Society Lines: 45 In article <1991May27.225630.18310@watdragon.waterloo.edu> ljcummings@poppy.uwaterloo.ca writes: > > Hi! This is a stupid question I know.. but somehow I've created a file >called !* in my bin directory. How do I get rid of it? > >I've tried placing it in quotes (single and double) and mv'ing it to a >new filename.. nothing seems to work. > >====== > >Script started on Mon May 27 18:49:41 1991 >@@_temp: Command not found. >_temp: Undefined variable. >% pwd >% ls -l >total 3 >-rw------- 1 ljcummings 0 Apr 16 15:31 !* >-rwx------ 1 ljcummings 142 Apr 16 15:30 arm >-rw------- 1 ljcummings 1060 Apr 24 15:17 longrun.c >-rw------- 1 ljcummings 0 May 27 18:49 test >% rm !* >rm -l >rm: unknown option letter 'l' >% rm '!*' >rm '-l' > I don't normally read this group, so e-mail will be preferred, (though > I'll check here anyways.). Thanks muchly! The problem is that ! substitution occurrs even within single quotes. You need to escape the !, like this: % rm '\!8' -Kartik -- internet% ypwhich subbarao@phoenix.Princeton.EDU -| Internet kartik@silvertone.Princeton.EDU (NeXT mail) SUBBARAO@PUCC.BITNET - Bitnet