From owner-freebsd-questions@FreeBSD.ORG Sat Mar 2 23:11:20 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1234C96E for ; Sat, 2 Mar 2013 23:11:20 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id 8A1BD86F for ; Sat, 2 Mar 2013 23:11:18 +0000 (UTC) Received: from mart.js.berklix.net (p57BCF51B.dip.t-dialin.net [87.188.245.27]) (authenticated bits=128) by flat.berklix.org (8.14.5/8.14.5) with ESMTP id r22NAnUe049366; Sun, 3 Mar 2013 00:10:50 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id r22NAps2098199; Sun, 3 Mar 2013 00:10:52 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id r22MjUfO034030; Sat, 2 Mar 2013 23:46:50 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201303022246.r22MjUfO034030@fire.js.berklix.net> To: Jos Chrispijn Subject: Re: rm -R From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Sat, 02 Mar 2013 18:44:22 +0100." <51323A76.2040203@webrz.net> Date: Sat, 02 Mar 2013 23:45:30 +0100 Sender: jhs@berklix.com Cc: "Teske, Devin" , "freebsd-questions@FreeBSD.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2013 23:11:20 -0000 Hi, Reference: > From: Jos Chrispijn > Date: Sat, 02 Mar 2013 18:44:22 +0100 > Message-id: <51323A76.2040203@webrz.net> Jos Chrispijn wrote: > > Teske, Devin: > > rm -R -- -S > > > > The "--" tells it "here's the end of the options, here come the file/directories" > > Almost: > > rm -R -- -S; > > did it, thanks very much for you help! This also works rmdir ./-S (& is probably the best generic naming method, & was valid decades ago, before rm got the luxury of modern stuff eg -- & would work for other commands that might not have delimieters such as -- ) This also work but is over kill : rmdir './-S' Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with "> ". Send plain text. No quoted-printable, HTML, base64, multipart/alternative.