remove empty line created by bash script code example Example: sed remove empty lines sed '/^$/d' /tmp/data.txt