Nice sed tip to remove extra whitespace at the end of lines in a file.
sed -e 's/ *$//' <file> Tags: sed, whitespace Filed in CLI, Shell with 0 Comments
sed -e 's/ *$//' <file>
Tags: sed, whitespace