Monthly Archives: October 2009

How to remove newlines (\n) with stream editor (sed)

Tweet From this article sed -n ‘:a;N;$!ba;s/\n//g;p’ < infile Been lookin’ for this for YEARS.