Ugly file name

dlp at gistdev.UUCP dlp at gistdev.UUCP
Wed May 17 07:09:00 AEST 1989


=> Written 12:54 pm  May 15, 1989 by hsi.UUCP!derek
=> :	% 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?

Try "rm -- -i -r -f"

This will remove three files, named "-i" and "-r" and "-f".



More information about the Comp.unix.wizards mailing list