Simple rm question, removing files that end with a tilde even if they start with a dot
Matt Wozniski
godlygeek@gmail.com
Fri Nov 3 20:35:00 GMT 2006
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@gmail.com> wrote:
> Why doesn't this work? I want to remove .bashrc~ (ls has been aliased to
> include -AF):
> hivemind@mindcooler ~
> $ ls
> .bash_history .bashrc* .emacs* .emacs.elc* .ssh/
> .bash_profile* .bashrc~* .emacs.d/ .inputrc* coding/
>
> hivemind@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/
More information about the Cygwin
mailing list