[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] How can we delete this? (RaQ2)



On Mon, Jun 26, 2000 at 03:10:30PM +1000, dylan wrote:
> > In our /home/sites/ directory on one of the RaQ2's, there is a file that
> > recently appeared (not sure how) that we would like to remove.
> > -rw-r--r--   1 root     root          220 Jun 19 12:06 ??&??Q4

rm -f "??&??Q4" or rm -f \?\?\&\?\?Q4

You can escape most characters from shell evaluation via quotes
or backslashes -- However, this does not work so well if the
lead character of a filename is a \- -- in which case, my experience
is you need a program besides rm to delete it such as mc, pilot,
or anything of your own devising.

P.S. In case you're wondering why \-Foobar is a problem, the problem
isn't with the shell -- it's with rm thinking anything starting with
a \- has to be an option rather than the possibility of a filename.


-- 
Robert G. Fisher		     NEOCOM Microspecialists Inc. 
System Administrator/Programmer      (540) 666-9533 x 116