Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: Help!!! Message-ID: <22977@mimsy.umd.edu> Date: 8 Mar 90 11:25:05 GMT References: <22682@adm.BRL.MIL> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 28 In article <22682@adm.BRL.MIL> HTIKOS@grad.cis.temple.edu writes: >This is in reply to the user with the "-files.doc" problem. >A sure-kill way of removing this file is to make sure that there are no >files with a "*.doc" extention in that current directory. Next, all you >must do is type the following : > rm *.doc It would be nice if people would test their answers before posting them. It would also be nice if people would read the monthly `frequently asked questions, with answers' answers before posting incorrect answers. % mkdir t; cd t % touch ./-files.doc % ls -files.doc % rm *.doc usage: rm [-rif] file ... % ls -files.doc % rm ./-files.doc % cd ..; rmdir t % I will leave it as an exercise to the reader to figure out why `./-files.doc' keeps `rm' from complaining about the leading `-'. :-) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris