Re: Simple rm question, removing files that end with a tilde even if they start with a dot

2006-11-03 Thread Brian Dessent
Eric Lilja wrote: > Why doesn't this work? I want to remove .bashrc~ (ls has been aliased to > include -AF): > [EMAIL PROTECTED] ~ > $ ls > .bash_history .bashrc* .emacs*.emacs.elc* .ssh/ > .bash_profile* .bashrc~* .emacs.d/ .inputrc*coding/ > > [EMAIL PROTECTED] ~ > $ rm *~ > rm:

Re: Simple rm question, removing files that end with a tilde even if they start with a dot

2006-11-03 Thread Matt Wozniski
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

Simple rm question, removing files that end with a tilde even if they start with a dot

2006-11-03 Thread Eric Lilja
Why doesn't this work? I want to remove .bashrc~ (ls has been aliased to include -AF): [EMAIL PROTECTED] ~ $ ls .bash_history .bashrc* .emacs*.emacs.elc* .ssh/ .bash_profile* .bashrc~* .emacs.d/ .inputrc*coding/ [EMAIL PROTECTED] ~ $ rm *~ rm: cannot remove `*~': No such file or