So I have created thousands of files using python and now they all have this character "¶" at the end when I use cat to read them. This character however breaks my file as my file is an OpenSSH private key and it doesn't like this character. I can remove it using editors like vi or nano but there has to be an automated way because editing thousands of files manually is pretty much impossible. I have already tried several things like removing the last character/byte of a file but it doesn't work.
Does anyone know how to fix that?