💻 Tech
You can do a lot of things with tr, which is a tool to translate standard input. For example, replacing new line with space like the example below:
tr '\n' ' ' <<EOF
heredoc> line1
heredoc> line2
heredoc> line3
heredoc> eof
heredoc> EOF
line1 line2 line3 eof %