Ugly file name

Jeff Beadles;X2568;61-215 jeff at quark.WV.TEK.COM
Wed May 17 12:47:23 AEST 1989


In article <448 at hsi86.hsi.UUCP> derek at hsi86.UUCP (Derek Lee-Wo) writes:
>This doesn't work for filenames that start with a minus. eg -badfile
>Anyone know how to erase such files with whipping up a short C program?

[ I removed comp.unix.wizards, it doesn't apply... ]

Most versions of rm will allow this to work:

rm - -badfile

The single '-' says "No more command options"  To use other command
options, use something like:

rm -f - -badfile

	-Jeff

--
Jeff Beadles		Utek Sustaining Engineering, Tektronix Inc.
jeff at quark.WV.TEK.COM



More information about the Comp.unix.questions mailing list