Date: Mon, 17 Dec 2001 16:32:39 -0500 From: Jim Conner <jconner@enterit.com> To: freebsd-questions@FreeBSD.ORG Cc: swear@blarg.net (Gary W. Swearingen), rene@xs4all.nl Subject: Re: rm a file named "-l"? ;-) Message-ID: <5.1.0.14.0.20011217163005.034eacc0@mail.enterit.com> In-Reply-To: <5.1.0.14.0.20011217162250.030b2cc8@mail.enterit.com> References: <rl7krl3731.krl@localhost.localdomain> <20011217111215.I21241@xs4all.nl> <20011217111215.I21241@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
At 16:23 12.17.2001 -0500, Jim Conner wrote: >At 12:49 12.17.2001 -0800, Gary W. Swearingen wrote: >>One "last resort" for problem filenames of any kind is to do >> >> \rm -i * .* >> >>in it's directory, and then be sure to answer "n" for everything >>but the one you want to delete. (You usually don't need the ".*".) >> >>To Unsubscribe: send mail to majordomo@FreeBSD.org >>with "unsubscribe freebsd-questions" in the body of the message > > >A quicker way would be to use unlink(1) > >- Jim Thought I would give an example for clarity: [notjames@njkwan ~]$ echo "blah" > -f [notjames@njkwan ~]$ ls -f GNUstep/ bin/ images/ mail/ nsmail/ ports-supfile seti/ src/ tmp/ [notjames@njkwan ~]$ unlink -f [notjames@njkwan ~]$ ls GNUstep/ bin/ images/ mail/ nsmail/ ports-supfile seti/ src/ tmp/ [notjames@njkwan ~]$ >Philosophy is for those who have nothing better to do than wonder >why philosophy is for those who have nothing better to do than... > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message - Jim Philosophy is for those who have nothing better to do than wonder why philosophy is for those who have nothing better to do than... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20011217163005.034eacc0>