Merge lines of files side by side
low risk
Joins corresponding lines of files using a delimiter (default tab).
| Flag | Meaning |
|---|---|
-d | Delimiter |
-s | Serial: join all lines of one file |
paste -sd, file.txtJoin lines with commas · explain & risk-check →paste a.txt b.txtTwo columns · explain & risk-check →Reference text is hand-written and may be incomplete — check man paste for your version. Test destructive commands on a non-production system first.