Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!mephisto!mcnc!rti!dg-rtp!dg-rtp.dg.com!durway From: durway@dg-rtp.dg.com (Lindsey Durway) Newsgroups: comp.unix.admin Subject: Re: help removing a file Message-ID: <1990Sep6.175920.20379@dg-rtp.dg.com> Date: 6 Sep 90 17:59:20 GMT References: <1990Sep5.180847.21767@zaphod.mps.ohio-state.edu> Sender: usenet@dg-rtp.dg.com (Usenet Administration) Reply-To: durway@dg-rtp.dg.com (Lindsey Durway) Distribution: usa Organization: Data General Corporation, Research Triangle Park, NC Lines: 22 In article <1990Sep5.180847.21767@zaphod.mps.ohio-state.edu>, harmon@function.mps.ohio-state.edu (Jim Harmon) writes: >Could someone someone help me with removing a file. On our system we have a >file that appears as zhang?evai.tex when doing a `ls` but a tab completion >says it's zhangNevai.tex. I've tried putting a back slash in front of the ? >and quoting the whole name. I even tried doing `rm -i *` and it matches >zhangNevai.tex but says there's No such file or directory. > >thanks >harmon@mps.ohio-state.edu This works for me: Use ls to list file names into a file. Edit the file, removing all but the offending file name. Then insert "rm " at the beginning of the line. Now you have a script that will remove the file--do chmod to make it executable, and run it. -- Lindsey Durway durway@dg-rtp.dg.com -or- ...!mcnc!rti!xyzzy!durway Data General Corp., Research Triangle Park, NC; (919) 248-6166.