01 / 06
This time you join sideways
Think back over the tools so far.
grep— pick the lines you want (cut across)cut— pull out the columns you want (cut down)sortanduniq— reorder lines, gather them up
Every one of them reduces or reorders.
This lesson goes the other way, with paste, which joins separate files side by side, and nl, which adds line numbers. Tools that add rather than take away.