0
(0)

for example, i have a file like below

test1 test2

test3 test4

test5 test6

i want my output to look like as below

test1 test2
test3 test4
test5 test6

use below sed function to achieve the result.

sed '/^ *$/d' <file>

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.