From owner-freebsd-questions@FreeBSD.ORG Fri Nov 19 14:50:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5175016A4CE for ; Fri, 19 Nov 2004 14:50:07 +0000 (GMT) Received: from mail.chrononomicon.com (chrononomicon.com [216.37.143.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id F139D43D5F for ; Fri, 19 Nov 2004 14:50:06 +0000 (GMT) (envelope-from bsilver@chrononomicon.com) Received: from [127.0.0.1] (unknown [192.168.0.42]) by mail.chrononomicon.com (Postfix) with ESMTP id E88CD1D2F6B for ; Fri, 19 Nov 2004 09:50:04 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <18815024894.20041119150912@hexren.net> References: <20041119133443.GA23820@akroteq.com> <18815024894.20041119150912@hexren.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4BAE8B4E-3A3A-11D9-8983-000D9338770A@chrononomicon.com> Content-Transfer-Encoding: 7bit From: Bart Silverstrim Date: Fri, 19 Nov 2004 09:50:03 -0500 To: FreeBSD Question List X-Mailer: Apple Mail (2.619) Subject: Re: can't get rid of this file with trailing backslash? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2004 14:50:07 -0000 On Nov 19, 2004, at 9:09 AM, Hexren wrote: > > AF> I was editing my named.conf and somehow saved the file > AF> with a trailing backslash and I can't get rid of it. > > AF> -rw-r--r-- 1 root bind 18314 Nov 18 11:35 named.conf > AF> -rw-r--r-- 1 root bind 18314 Nov 18 11:07 > named.conf.save.11-18 > AF> -rw-r--r-- 1 root bind 17389 Nov 18 10:58 named.conf\ > AF> -rw-r--r-- 1 bind bind 2602 May 25 17:28 named.root > > AF> I was using nano and have no clue how I did it. > AF> If I rm named.conf\ it removes the named.conf. > > AF> So how do I get rid of named.conf\ ? > > AF> Andy > > > --------------------------------------------- > > > only shooting in the blue here but have you tried rm 'named.conf\' so > as to instruct the sheel to ignore any special chars it sees. Or rm > named.conf\\ (I seem to recall that you the backslash is the escape > sequenze for the bash so escaping a backslash should lead to a literal > backslash. *guessing* My first instinct would be cp named.conf backupnamed.conf rm named.con* mv backupnamed.conf named.conf :-) 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.