Re: Shell expansion of * and hidden files

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

 



On Fri, 2004-07-23 at 13:26, Alan Horn wrote:
> On Thu, 22 Jul 2004, Ulrich Drepper wrote:
> 
> > The most straight-forward way is to tell the shell you want the dot files:
> >
> > $ ls -a
> > ./  ../  .uu
> > $ echo *
> > *
> > $ shopt -s dotglob
> > $ echo *
> > .uu
> > $ shopt -u dotglob
> > $ echo *
> > *
> >
> 
> I find that
> 
> ls .??*
> 
> usually works well.

I also often use this (as it does not glob to . or ..) but it also does
not glob to .a .b .c etc. As single character dotfiles are rare, this
isn't usually a problem, but it is a flawed solution.

Cheers, Ben



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux