>>>>> "Julian" == Julian Gilbey <[EMAIL PROTECTED]> writes:
> The "find" suggestion is more interesting, perhaps. Maybe the
> output of the find commands should be piped into something like
> "grep '^[-A-Za-z0-9./_]*$'" or whatever, and that operated on
> using xargs. Whatever.
You allow filenames beginning with "-" in your regexp. Isn't that
dangerous? Try this:
mkdir /tmp/test
cd /tmp/test
touch a b c d e
echo x > -l
ls
ls *
I don't know whether such a filter is needed. If yes, something like
"grep '^[A-Za-z0-9./_][-A-Za-z0-9./_]*$'" might be better.
Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-751355
Berggartenstr. 9
D-30419 Hannover mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------