Bash remova a linha vazia
sed -r '/^\s*$/d'
steamboatid
sed -r '/^\s*$/d'
sed -i '/^$/d' [file_name]