Re: Shell expansion of * and hidden files

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

 



On Fri, 23 Jul 2004, James Wilkinson wrote:

Robert P. J. Day wrote:
it's a popular puzzle to come up with a glob that matches all
hidden thingies, without matching "." or "..".  and the solution is
...

$ echo .[!.]*

Andre Speelmans objected:
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 :(

Try echo .[!.]* ..?* which should overcome that ojection. It even handles ".. ".

the puzzle would be to try to come up with a *single* RE that would work in all cases. anyone? anyone? beuller?


rday



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

  Powered by Linux