Shell expansion of * and hidden files
Ulrich Drepper
drepper at redhat.com
Fri Jul 23 03:24:03 UTC 2004
James Wilkinson wrote:
> The most straightforward I can think of at this time of night
> is
>
> [james at 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 ❖
More information about the fedora-list
mailing list