Re: Shell expansion of * and hidden files

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

 



James Wilkinson wrote:
> The most straightforward I can think of at this time of night
> is
> 
> [james@howells moo]$ find . -maxdepth 1 | egrep -v '^\.$' | xargs tar cvf woof.tar ./.oink
> ./baa

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 *
*


-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â



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

  Powered by Linux