Bash (Scripting) - inline text (paste command)

by
Jeremy Canfield |
Updated: March 08 2020
| Bash (Scripting) articles
The paste command can be used to update a file to place text in line. For example, let's say file1 contains the following text.
Hello
World
How
are
you
today?
The paste command will put the text inline.
~]# cat file1 | paste - -
Hello World How are you today?
Did you find this article helpful?
If so, consider buying me a coffee over at