I have a few tens of .tex files in a directory.
How can I compile them all with a single command from the terminal?
Moreover: is it possible to avoid all the files that are generated by the compiler (.bak, .log, .aux, .out, .bib files)?
I usually compile with pdflatex file.tex
.