Answers for "sed remove empty lines"

0

sed remove empty lines

sed '/^$/d' /tmp/data.txt
Posted by: Guest on December-17-2020
0

sed remove all line breaks

tr -d '\n' < input.txt > output.txt
Posted by: Guest on September-22-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language