How to remove a newline at end of file

Those who know me know that I don’t like Perl. Sometimes in life the thing you don’t like could be best tool/friend. I need to remove a newline character from a text file: layouts/partials/pagination.html. The easiest way to do this is to run the following command: Thanks Perl and this Stack Overflow question.

June 9, 2016 · 1 min · 53 words · kenno