can't get rid of this file with trailing backslash?
David Landgren
david at landgren.net
Fri Nov 19 14:05:12 PST 2004
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
More information about the freebsd-questions
mailing list