Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Remove trailing spaces

$ perl -pE 's/[ \t]+$//' src/examples/text_with_spaces.txt

This is not good as it will convert all the file into one long line:

perl -pE 's/\s+$//' src/examples/text_with_spaces.txt

This fixes it:

perl -nE 's/\s+$//; say' src/examples/text_with_spaces.txt
perl -lpE 's/\s+$//' src/examples/text_with_spaces.txt