Bootstrap FreeKB - Bash (Scripting) - inline text (paste command)
Bash (Scripting) - inline text (paste command)

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 3d1fc5 in the box below so that we can be sure you are a human.