I have a set of several hundred .txt files that I am analyzing (ngram analysis using NSP), and I need to remove all the line breaks from each file. I can do it one at a time using tr:
$ tr -d "\n\r" < input1.txt > output1.txt
How can I do this for my entire directory of files at once?