SyntaxFix
Write A Post
Hire A Developer
Questions
To also remove the trailing newline at the end of the file
python -c "s=open('filename','r').read();open('filename', 'w').write(s.replace('\n',''))"