Stupid question...

Michael Fuller msf at wren.cs.rmit.OZ.AU
Tue May 28 19:02:49 AEST 1991


In <29957 at hydra.gatech.EDU> gt5223b at prism.gatech.EDU (Doug Berkland) writes:
>Along the lines of hard to remove files... is there any way to remove
>a file beginning with a - ?  Using \- doesn't get it... any ideas?

I really hate to say "RTFM", but...! I quote from the manual entry
for "rm":

	NAME
	     rm, rmdir  - remove (unlink) files or directories

	     SYNOPSIS
		  rm [ -f ] [ -r ] [ -i ] [ - ] file ...

	[deleted]

		The null option - indicates that all the arguments following
		it are to be treated as file names.  This allows the specif-
		                                     ^^^^^^^^^^^^^^^^^^^^^^^
		ication of file names starting with a minus.
		^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

!!!!!!!

Michael Fuller
_____________________________________________________________________________
Key Centre for Knowledge Based Systems, RMIT, Australia.
ACSNET: msf at goanna.cs.rmit.OZ	BITNET: msf%goanna.cs.rmit.OZ.AU at relay.cs.net
INTERNET: msf at goanna.cs.rmit.OZ.AU  UUCP: ..!uunet!goanna.cs.rmit.OZ.AU!msf



More information about the Comp.unix.shell mailing list