Date: Sat, 02 Mar 2013 23:45:30 +0100 From: "Julian H. Stacey" <jhs@berklix.com> To: Jos Chrispijn <kernel@webrz.net> Cc: "Teske, Devin" <Devin.Teske@fisglobal.com>, "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org> Subject: Re: rm -R Message-ID: <201303022246.r22MjUfO034030@fire.js.berklix.net> In-Reply-To: Your message "Sat, 02 Mar 2013 18:44:22 %2B0100." <51323A76.2040203@webrz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Reference: > From: Jos Chrispijn <kernel@webrz.net> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303022246.r22MjUfO034030>