Coreutils (file, shell, text manipulation)

Coreutils%20Docs 2088E9?logo=quickLook&logoColor=white

Overview

The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system.

Paste: Merge lines of files

Paste%20Docs 2088E9?logo=quickLook&logoColor=white

Writes lines consisting of the sequentially corresponding lines from each FILE, separated by TABs, to standard output. With no FILE, or when FILE is -, read standard input.

Usage
paste [OPTION]... [FILE]...
Merge 2 lines
$ echo -e "test1,\ntest2\ntest3,\ntest4\ntest5,\ntest6"
test1,
test2
test3,
test4
test5,
test6

$ echo -e "test1,\ntest2\ntest3,\ntest4\ntest5,\ntest6" | paste -d " " - -
test1, test2
test3, test4
test5, test6