Re: confusing behaviour of the * wildcard when handling "dot" files and dirs.



Robert Heller <heller@xxxxxxxxxxxx> writes:

The important thing to remember is this: the wildcards are expanded by
the *shell* *NOT* by the program you are using. If the program is going
to be traversing directories on its own, 'helping' it with wildcards often
confuses things. Once this is clear, all sorts of errors are avoided.

Agreed. Especially when dealing with directories with a huge file
count, a simple wildcard expansion won't cover it all. Better yet, use
find(1) in conjunction with xargs(1) (or using find's `-exec' flag) to
do selective/filtered directory processing.

--
I like the idea of 256 bits, though: 32 for the (Unicode) character leaves
room for 224 Bucky bits, which ought to be enough for anyone.
-- Roland Hutchinson, in alt.folklore.computers
.



Relevant Pages

  • Re: QuoteSQL
    ... Including all sorts of quotes, newlines, backslashes etc. in the name. ... wildcards whereas his version looked for literal percents. ... his proposed QuoteSQL. ...
    (comp.lang.python)
  • Re: QuoteSQL
    ... Including all sorts of quotes, newlines, backslashes etc. in the name. ... I think his point was that any '%' characters inside name act like ... wildcards whereas his version looked for literal percents. ...
    (comp.lang.python)