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

Re: Shell expansion of * and hidden files



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 â



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