*BSD News Article 24775


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!basser.cs.su.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!demon!awfulhak.demon.co.uk!awfulhak!brian
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.os.386bsd.questions
Subject: Re: How do you rm a strange file?
Date: 7 Dec 93 01:38:23
Organization: Coverform Ltd.
Lines: 19
Message-ID: <BRIAN.93Dec7013823@awfulhak.demon.co.uk>
References: <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au> <CGrCK8.JBC@mcs.anl.gov>
	<1993Nov20.195548.20444@newstand.syr.edu>
	<CH5nps.KIL@sugar.NeoSoft.COM>
NNTP-Posting-Host: awfulhak.demon.co.uk
In-reply-to: peter@NeoSoft.com's message of Sat, 27 Nov 1993 14:46:40 GMT

In article <CH5nps.KIL@sugar.NeoSoft.COM> peter@NeoSoft.com (Peter da Silva) writes:


   The only way guaranteed to work on all UNIX style systems:

	   rm "./-lg | less"


Not true....

           rm -ir `pwd` (answer 'y' to the ones you don't want)
           >FileNotThere; rm FileNotThere funny-files... (each file in '')

Also, on a large (but decreasing) number of OSs, mv has no flags.  You
can rename the file to a 'more removable' name.

Brian.
--
Brian <brian@awfulhak.demon.co.uk>