I want to remove all non-ASCII characters from all .tex files in a directory. I know I can use the code:
LC_ALL=C tr -dc '\0-\177' <file >newfile
for each single file, but I have 200 .tex files. How I can apply this command to all .tex files in the directory and replace each file with a new clean one with the same name?