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.