Mag Gam on 29 Jun 2007 03:35:40 -0000


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

Re: [PLUG] delete unusual file name

  • From: "Mag Gam" <magawake@gmail.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] delete unusual file name
  • Date: Thu, 28 Jun 2007 23:35:37 -0400
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UhvogScg44a3Co7S3ZGh5dA1OrS635grVZtVmA5I43xF/LLQLriLsJNILPkRxyVDuNOPoMnjJs4CvSRCJzGR7zuj0dYbaK2ccbx9ZcnG+pCZjNLlqWyS3h0LwESK+Pr5eaWcXg5jl82ABTtJ9lUPF35AYusvd6P+w1j8fwNYqJo=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

What about,

find . -name "*thisfilewontdelete*" -exec rm {} \;
(not tested, but I think you get the idea)


On 6/28/07, Antony P Joseph <antony@panathara.org> wrote:
On Thu, 2007-06-28 at 22:00 -0400, Jeff McAdams wrote:
> 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 "-"
> _
if rm does not support -- , please try rm ./-filename

With regards
Antony
> __________________________________________________________________________
> 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

___________________________________________________________________________
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

___________________________________________________________________________
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