Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!sol.ccs.deakin.edu.au!news.cs.uow.edu.au!picasso.cssc-syd.tansu.com.au!orca1.vic.design.telecom.com.au!netbsd08.dn.itg.telecom.com.au!not-for-mail From: tdwyer@netbsd08.dn.itg.telecom.com.au (Terry Dwyer 619 491 5161) Newsgroups: comp.os.386bsd.questions Subject: Re: How do you rm a strange file? Date: 21 Nov 1993 13:04:44 +0800 Organization: Telecom Australia Lines: 27 Message-ID: <2cmstq$78e@netbsd08.dn.itg.telecom.com.au> References: <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au> NNTP-Posting-Host: netbsd08.dn.itg.telecom.com.au X-Newsreader: TIN [version 1.2 PL2] Terry Dwyer 619 491 5161 (tdwyer@netbsd08.dn.itg.telecom.com.au) wrote: : 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? (Following up to my own article - sorry) Thanks to all the people who replied to my message, so far about 11 and 2 postings. Because there seem to be so many different ways you can do this, a short summary: (1) rm - "-lg | less" pass (2) rm ?lg???less fail (3) rm -- "-lg | less" Better than (1) (4) rm this_sucks "-lg | less" pass (5) Get a tcsh or bash, then type: rm -<TAB> fail (5) mkdir tmp; mv [~-]* tmp/; rm *; mv tmp/* .; rmdir tmp ???? (6) rm -i * fail -- _-_|\ Terry Dwyer E-Mail: tdwyer@netbsd08.dn.itg.telecom.com.au / \ System Administrator Phone: +61 9 491 5161 Fax: +61 9 221 2631 *_.^\_/ Telecom Australia Telstra Corporation MIME capable mailer v Perth WA ( I do not speak for Telstra or Telecom )