-->

Wednesday, March 13, 2013

easiest way to get rid of newline

if you just want to delete newlines:

cat filename | tr -d '\n'


if instead you want to replace them with something else e.g. _

cat filename | tr '\n' '_'

No comments:

Post a Comment