The find command in unix/linux is normally invoked like this:

find . -name '*.c' | someOtherProgram

In winbrash, you would write this instead:

.ls -R | .regex -m '\.c$' | someOtherProgram

Which works but then you have to remember to use a regular expression as the parameter to .regex instead of the more natural way of writing the file name pattern -- which is to use the standard "glob" characters:

*.c

.regex could be modified to have a -G globPattern option, but that violates the overall behavior of the command.

.ls on the other hand is meant to work with glob patterns, so maybe adding options to let you specify matching patterns to it makes the most sense.

Any thoughts?