Shell expansion of * and hidden files
Ben Stringer
ben at burbong.com
Fri Jul 23 04:37:17 UTC 2004
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
More information about the fedora-list
mailing list