Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2004 23:05:12 +0100
From:      David Landgren <david@landgren.net>
To:        FreeBSD Question List <freebsd-questions@freebsd.org>
Subject:   Re: can't get rid of this file with trailing backslash?
Message-ID:  <419E6E18.1030004@landgren.net>
In-Reply-To: <ECCB1B9C-3A3B-11D9-8983-000D9338770A@chrononomicon.com>
References:  <20041119133443.GA23820@akroteq.com> <18815024894.20041119150912@hexren.net> <4BAE8B4E-3A3A-11D9-8983-000D9338770A@chrononomicon.com> <200411190854.21744.josh@tcbug.org> <ECCB1B9C-3A3B-11D9-8983-000D9338770A@chrononomicon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bart Silverstrim wrote:
[...]
>>> I'm too paranoid that I know what *should* work wouldn't or would
>>> still end up deleting the original file I wanted, so I'd have to
>>> make a backup of the file and do it that way rather than play with
>>> escapes and quotes.
>>
>>
>> Cant' you escape the \ with a \?
>> rm named.conf\\ ??
> 
> 
> I think he did do that and it worked.
> 
> I was just commenting what my first instinct is to do.  A few extra 
> keystrokes, but it saves my peace of mind.  I jump among too many 

o/~ speaking words of wisdom o/~

I couldn't agree more. Another thing that no-one else has yet mentioned is

   rm -i named.conf\\

which will force rm to prompt for a y/n response in order to proceed 
with the actual unlinking.

David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?419E6E18.1030004>