*BSD News Article 24322


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!xlink.net!subnet.sub.net!nadia.stgt.sub.org!delos!luva!migieger
From: migieger@luva.stgt.sub.org (Michael Giegerich)
Subject: Re: How do you rm a strange file?
Organization: private 386bsd site
References: <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au>
Message-ID: <CGuC30.EB@luva.stgt.sub.org>
Date: Sun, 21 Nov 1993 12:01:34 GMT
Lines: 21

In article <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au> tdwyer@netbsd08.dn.itg.telecom.com.au (Terry Dwyer 619 491 5161) writes:
> seem to have created a file that I can't delete in the middle of 
>a large directory structure:
>
>-rw-r--r--    1 tdwyer         58 Nov 19 08:54 -lg | less
>
>Any clues how to rm it?

Easy (it's in one of the faq's).

rm ./-lg\ \|\ less

tcsh (and bash?) do the quoting (\) automatically...

Bye,
Michael.

-- 
------------------------------+------------------------------
Michael Giegerich             | migieger@luva.stgt.sub.org
------------------------------+------------------------------