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

m
 
(One intermediate revision by one other user not shown)
Line 15:
 
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