Talk:Walk a directory/Non-recursively: Difference between revisions

m
(globs)
 
(3 intermediate revisions by 3 users not shown)
Line 10:
 
Using a glob is not the same as walking a directory. A number of the solutions are pointless.
:Go ahead and update the task page with a more specific description; It was done once before with walking trees. (Also, sign your posts with - - ~ ~ ~ ~ (sans spaces.) --[[User:Short Circuit|Short Circuit]] 19:58, 9 October 2007 (MDT)
 
== What does "match a pattern" mean? ==
 
For example, if the pattern is "bar", do you want it to match a file named "foobarbaz"? Some examples on here do and some don't. Also, what kind of patterns are allowed? Some people use Perl regular expressions, where ".*" is used to represent "0 or more characters of any kind"; but some use the shell globbing syntax, which use "*" to do that. So what do we want here? --[[User:Spoon!|Spoon!]] 05:37, 2 January 2009 (UTC)
:: I should think that "pattern" would just mean "whatever is normal for the given language and OS." For example, what I did in BASIC on DOS (<code>f = DIR$("*.*")</code>) is different from what I'd do in a shell script on Linux. -- [[User:Eriksiers|Eriksiers]] 16:00, 7 August 2009 (UTC)
Anonymous user