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.
You simply add the other conditions to the end:
for VARIABLE in 1 2 3 4 5 .. N do command1 command2 commandN done
So in your case:
for file in *.log *.txt do echo "${file}" done