Ugly file name

Andrew Scherpbier turtle at sdsu.UUCP
Thu May 18 14:38:53 AEST 1989


In article <448 at hsi86.hsi.UUCP> derek at hsi86.UUCP (Derek Lee-Wo) writes:
>In article <1614 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
>:Helpful Hints #1273: if you have a file name containing characters that
>:the shell assigns special significance to, put the file name in single
>:quotes when typing it as a file name:
>:
>:	% rm 'odds&ends'
>:
>
>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?

Besides being able to do this:

	rm ./-badfile

you can also do

	rm -- -badfile


--Andrew "Race Turtle" Scherpbier



More information about the Comp.unix.wizards mailing list