Run cat data/users-a.txt.
cat data/users-a.txt
Compare two sorted account inventories without modifying either file.
Files and pathscommcat
Click any instruction for the command details, the why, and the common mistake to avoid.
Run cat data/users-a.txt.
cat data/users-a.txt
Run cat data/users-b.txt.
cat data/users-b.txt
Run comm data/users-a.txt data/users-b.txt.
comm data/users-a.txt data/users-b.txt
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Build repeatable confidence with comparing sorted inventories with comm.
Start with cat data/users-a.txt, inspect the result, then continue in order.
Comparing sorted inventories with comm helps operators explain what they know before they change anything.
cat <file>
Print text file contents.
comm <left> <right>
Compare two sorted text files line by line.