Posted in Command Line, Linux Remove Empty Characters at End of Lines Binny V A April 18, 2008 Leave a Comment on Remove Empty Characters at End of Lines Remove empty characters at the end of each row sed -e 's/ *$//' file.txt Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.