how to delete blank lines in unix using sed code example Example: sed remove empty lines sed '/^$/d' /tmp/data.txt