From owner-freebsd-questions@FreeBSD.ORG Fri Nov 19 15:01:46 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 A19AE16A4CE for ; Fri, 19 Nov 2004 15:01:46 +0000 (GMT) Received: from mail.chrononomicon.com (chrononomicon.com [216.37.143.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C5DC43D5E for ; Fri, 19 Nov 2004 15:01:46 +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 202391D30A6 for ; Fri, 19 Nov 2004 10:01:45 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <200411190854.21744.josh@tcbug.org> References: <20041119133443.GA23820@akroteq.com> <18815024894.20041119150912@hexren.net> <4BAE8B4E-3A3A-11D9-8983-000D9338770A@chrononomicon.com> <200411190854.21744.josh@tcbug.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Bart Silverstrim Date: Fri, 19 Nov 2004 10:01:43 -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 15:01:46 -0000 On Nov 19, 2004, at 3:54 AM, Josh Paetzel wrote: > On Friday 19 November 2004 14:50, Bart Silverstrim wrote: >> >> 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. > > 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 different systems with their own quirks and whatnot to not be careful when deleting things under /etc. how many sysadmins either A) type ls at the DOS/cmd prompt or B) aliased ls under DOS/cmd prompt on Windows (or I guess C would be installed some UNIX-like tools under Windows because they kept doing A)? :-) -Bart