When I want to process a bunch of tex files, I use
for f in *.tex; do latex "$f" ; done;
What do I do when I need to redirect output to another file, like in case of catdvi?
The following does not work:
for f in *.dvi ; do catdvi -e 1 -U $f > "${f%.dvi}.txt"; done;
What am I doing wrong?