Solutions Log Strip empty (null) lines from a file October 6, 2009 1 min read text processingsed sed meets the need; the recipe follows: sed '/^$/d' filename Related Solutions Disable Spotlight in Mac OS X 10.6 Snow Leopard macOSspotlightperformance Read → ← Solutions Log