Re: Shell expansion of * and hidden files

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

 



On Fri, 23 Jul 2004, Andre Speelmans wrote:

On Fri, Jul 23, 2004 at 05:18:56AM -0400, Robert P. J. Day wrote:

actually, it doesn't, since it wouldn't match the perfectly valid
".a".  it's a popular puzzle to come up with a glob that matches all
hidden thingies, without matching "." or "..".  and the solution is
...

$ echo .[!.]*

But this would miss the file ..test or any other which starts with two or more dots.

And I have to admit I don't know which glob would match all :(

hmmm ... you're right. must think harder on this one.

rday



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

  Powered by Linux