Solutions Log by Dan Reiland

6Oct/090

Strip empty (null) lines from a file

sed meets the need; the recipe follows:

sed '/^$/d' filename
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.