delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/03/15:35:52

X-Spam-Check-By: sourceware.org
Message-ID: <17393e3e0611031235q21e0e024l91b1da1ca878847@mail.gmail.com>
Date: Fri, 3 Nov 2006 15:35:32 -0500
From: "Matt Wozniski" <godlygeek AT gmail DOT com>
Reply-To: mjw AT drexel DOT edu
To: cygwin AT cygwin DOT com
Subject: Re: Simple rm question, removing files that end with a tilde even if they start with a dot
In-Reply-To: <eig8lc$ugb$1@sea.gmane.org>
MIME-Version: 1.0
References: <eig8lc$ugb$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

This isn't a cygwin question, it's a bash specific question and should
have been addressed elsewhere.  That being said, * doesn't match files
that start with a . by default.  You can change this with 'setopt
dotglob', or you can use 'rm .*~' (Note the dot before the star)

~Matt

On 11/3/06, Eric Lilja <mindcooler AT gmail DOT com> wrote:
> Why doesn't this work? I want to remove .bashrc~ (ls has been aliased to
> include -AF):
> hivemind AT mindcooler ~
> $ ls
> .bash_history   .bashrc*   .emacs*    .emacs.elc*  .ssh/
> .bash_profile*  .bashrc~*  .emacs.d/  .inputrc*    coding/
>
> hivemind AT mindcooler ~
> $ rm *~
> rm: cannot remove `*~': No such file or directory
>
> Obviously I can remove it by naming the file explicitly but I want to
> know why the lines I pasted above doesn't work so I learn something. :-)
> rm has not been aliased
>
> / Eric Lilja
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019