[plug] Deleting/Moving files beginning with '-'

Russell Steicke r.steicke at bom.gov.au
Tue Oct 25 11:06:48 WST 2005


On Tue, Oct 25, 2005 at 10:31:59AM +0800, Shannon Carver wrote:
> Hi Guys, 
> 
> In light of the find -exec query, I thought I'd ask my question on how to
> delete files from a shell that start with a hyphen/dash.  My solution thus
> far, has just been to use Nautilus/Konqueror as its handled them fine, but I
> know there must be a way to handle them, but I just can't find the right
> command to do it.

  rm ./-file

Or, with the gnu rm (on Linux):

  rm -- -file





-- 
Russell Steicke

-- Fortune says:
Faster, faster, you fool, you fool!
		-- Bill Cosby



More information about the plug mailing list