In Bash, how does one match a regular expression with multiple criteria against a file name? For example, I\'d like to match against all the files with .txt or .log endings.
Do it the same way you'd invoke ls. You can specify multiple wildcards one after the other:
ls
for file in *.log *.txt