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