paste
textLinux/Unix
The paste command is one of the most frequently used commands in Linux/Unix-like operating systems. paste Merge lines of files horizontally
Quick Reference
Command Name:
paste
Category:
text
Platform:
Linux/Unix
Basic Usage:
paste [options] [arguments]
Common Use Cases
Syntax
paste [options] [file...]
Options
Option | Description |
---|---|
-d, --delimiters=LIST |
Reuse characters from LIST instead of tabs for delimiter |
-s, --serial |
Paste one file at a time instead of in parallel |
-z, --zero-terminated |
Line delimiter is NUL, not newline |
--help |
Display help and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the paste
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
paste file1.txt file2.txt