1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:22:08 +02:00
tldr/pages/common/paste.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

24 lines
721 B
Markdown

# paste
> Merge lines of files.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/paste-invocation.html>.
- Join all the lines into a single line, using TAB as delimiter:
`paste -s {{path/to/file}}`
- Join all the lines into a single line, using the specified delimiter:
`paste -s -d {{delimiter}} {{path/to/file}}`
- Merge two files side by side, each in its column, using TAB as delimiter:
`paste {{path/to/file1}} {{path/to/file2}}`
- Merge two files side by side, each in its column, using the specified delimiter:
`paste -d {{delimiter}} {{path/to/file1}} {{path/to/file2}}`
- Merge two files, with lines added alternatively:
`paste -d '\n' {{path/to/file1}} {{path/to/file2}}`