How can I replace each newline (\n) with a space using sed? April 18, 2022 by Tarik How can I replace each newline (\n) with a space using sed?