Walk a directory/Non-recursively: Difference between revisions

m
added a ;Related task: (bold) header, added other whitespace to the task's preamble.
(Added Elixir)
m (added a ;Related task: (bold) header, added other whitespace to the task's preamble.)
Line 1:
{{task|File System Operations}}
Walk a given directory and print the ''names'' of files matching a given pattern. (How is "pattern" defined? substring match? DOS pattern? BASH pattern? ZSH pattern? Perl regular expression?)
 
;Task:
'''Note:''' This task is for non-recursive methods. These tasks should read a ''single directory'', not an entire directory tree. For code examples that read entire directory trees, see [[Walk Directory Tree]]
Walk a given directory and print the ''names'' of files matching a given pattern.
 
Walk a given directory and print the ''names'' of files matching a given pattern. (How is "pattern" defined? substring match? DOS pattern? BASH pattern? ZSH pattern? Perl regular expression?)
 
 
'''Note:''' This task is for non-recursive methods.   These tasks should read a ''single directory'', not an entire directory tree. For code examples that read entire directory trees, see [[Walk Directory Tree]]
 
'''Note:''' Please be careful when running any code presented here.
 
 
;Related task:
*   [[Walk Directory Tree]]   (read entire directory tree).
<br><br>
 
=={{header|68000 Assembly}}==