[comp.unix.wizards] an rm question -- how to rm a file -b

maart@cs.vu.nl (Maarten Litmaath) (04/19/88)

How about:
		rm ./-b
Sleep well.
-- 
South-Africa:                         |Maarten Litmaath @ Free U Amsterdam:
           revival of the Third Reich |maart@cs.vu.nl, mcvax!botter!ark!maart

vandys@hpindda.HP.COM (Andy Valencia) (04/20/88)

	If you get really desperate, cd to the dir it's in and do:

% ls -i

	to get the inode number.  Then do:
% find . -inum <num> -exec rm {} \;

	Where <num> is the inode number for the file, which
is what ls told you.

	Some find's will honor:
% find . -inum <num> -unlink

				Have fun,
				Andy Valencia
				vandys%hpindda.UUCP@hplabs.hp.com

joe@tekbspa.UUCP (Joe Angelo) (04/23/88)

in article <4470003@hpindda.HP.COM>, vandys@hpindda.HP.COM (Andy Valencia) says:
> 
> 
> 	If you get really desperate, cd to the dir it's in and do:
> 

	# rm -ir .

Answer 'n' to other files, 'y' to your file; intr when past your file.
Ofcourse,

	# rm ./-b

works nicely!
-- 
"I'm trying             Joe Angelo -- Senior Systems Engineer/Systems Manager
 to think               at Teknekron Software Systems, Palo Alto 415-325-1025
 but nothing
 happens!"              uunet!tekbspa!joe -OR- tekbspa!joe@uunet.uu.net