Convert newlines to spaces By admin on February 16, 2018 in Bash Scripting, Linux TR can be used to convert a list of items from one per line to space separated with this: tr '\r\n' ' ' 1 tr '\r\n' ' ' Related posts: Convert MyISAM Tables to InnoDB Convert SSL cert from PEM to PK12 Convert SSL cert from PK12 to PEM