Are there any tools / UNIX single liners which would remove trailing whitespaces for multiple files in-place.
E.g. one that could be used in the con
For those that are not sed gurus (myself included) I have created a small script to use JavaScript regular expressions to replace text in files and does the replacement in place:
http://git.io/pofQnQ
To remove trailing whitespace you can use it as such:
$ node sed.js "/^[\t ]*$/gm" "" file
Enjoy