Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!swrinde!sgigate.sgi.com!news1.best.com!blob.best.net!not-for-mail From: dillon@best.com (Matt Dillon) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Removing files with weird names? Date: 31 Jul 1995 13:05:21 -0700 Organization: Best Internet Communications, Inc. (info@best.com) Lines: 28 Distribution: world Message-ID: <3vjd21$jdi@blob.best.net> References: <64116C7@p0.f128.n5100.z2.fidonet.org> <301c55a1@p0.f58.n5100.z2.fidonet.org> NNTP-Posting-Host: blob.best.net :In article <301c55a1@p0.f58.n5100.z2.fidonet.org>, :Victor Rotanov <Victor_Rotanov@p0.f58.n5100.z2.fidonet.org> wrote: :>TO: stan@bombay.gps.caltech.edu :> :>Hello, stan@bombay.gps.caltech.edu! :> :>27 Jul 95 20:03, stan@bombay.gps.caltech.edu wrote to All: :> :>[...] :> :> s> Now I can't do anything with them, since when I tried to rename them, I got :> s> an error where it stripped out the "$" and tried to interpret the :> s> character after it as a variable. What do I do about this? :> :>Try '\' before '$'. I always do a 'rm -i *' or a 'rm -ri parent_directory' and then pick and choose which file(s) I want to delete. You can play the same trick with 'cd'... if you want to cd into a weirdly named directory, give cd a wildcard that uniquely identifies the directory. This way you can avoid having to figure out the correct ^V escapes and backslashes. (be careful with rm though, if you forget the 'i' you will get into trouble). -Matt