18 Apr Remove Empty Characters at End of Lines Remove empty characters at the end of each row sed -e 's/ *$//' file.txt