W. Chris Shank on 29 Jun 2007 14:45:10 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] delete unusual file name


this worked great - thanks!


----- Original Message -----
From: Jeff McAdams <jeffm@iglou.com>
To: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
Sent: Thursday, June 28, 2007 10:00:22 PM GMT-0500
Subject: Re: [PLUG] delete unusual file name

W. Chris Shank wrote:
> ok - this is really dumb. through some erroneous scripting i ended up creating a few files that begin with a - sign. ie: -thisfilewontdelete. any clues how to delete it?

rm -- <filename>

the "--" tells rm to treat further arguments as file names, even if they
start with a "-"
--
Jeff McAdams
"They that can give up essential liberty to obtain a
little temporary safety deserve neither liberty nor safety."
                                       -- Benjamin Franklin



--
W. Chris Shank
ACE Technology Group, LLC
www.myremoteITdept.com
(610) 640-4223

--------------------------------
Security Note: To protect against computer viruses, 
e-mail programs may prevent sending or receiving 
certain types of file attachments. Check your e-mail 
security settings to determine how attachments are 
handled. 
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug