From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a6e32ebc05b6b170 X-Google-Attributes: gidfee84,public From: Joe Mario Subject: Re: Help deleting a file named * Date: 1998/01/12 Message-ID: <34BA585C.794B@zk3.dec.com>#1/1 X-Deja-AN: 315280693 Content-Transfer-Encoding: 7bit References: <34B6A1DD.33E872AC@newark1.newark.ohio-state.edu> To: "Donald G. Marchlenski" Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Donald G. Marchlenski wrote: > > I did a bad thing with ftp and wound up creating a file named * in > my home directory. > ... > but I wonder if there is a way to just delete *. Try using: rm -i -- \* % touch "*" % touch foo % ls -l total 0 -rw-r--r-- 1 mario decc 0 Jan 12 12:50 * -rw-r--r-- 1 mario decc 0 Jan 12 12:50 foo % rm -i -- \* rm: remove *? y % ls -l total 0 -rw-r--r-- 1 mario decc 0 Jan 12 12:50 foo % Joe