Posted in Command Line, Linux Remove Empty Lines Binny V A February 7, 2008 Leave a Comment on Remove Empty Lines Remove empty lines from a file using sed sed '/^$/d' file.txt Original Article Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.