Back to the learning path

paste

paste: paste lines together Command details
Step 1/1: Merge side by side

paste joins the matching lines of several files, separated by tabs; -d sets the separator. paste -sd, joins all lines of one file into one.

$ paste -d, names.txt scores.txt
Fundamentalspaste
Put two files side by side
names.txt and scores.txt match line by line. Use paste to join them as "name:score".
egrepNext lesson:join