Remove empty characters at the end of each row
sed -e 's/ *$//' file.txt
Posted in Command Line, Linux | No Comments »