txtscan
I’ve created a small command-line program called “txtscan” for scanning the contexts of text files and reporting on the interesting characters and the line endings. It is useful for finding and identifying damage/garbage/exploit attempts in files that are basically just supposed to be ASCII.
“txtscan” is available on github.