Mission 320

Sorted account diff

Use comm to separate shared and unique account names.

Text and logs
8 minutes Core Lesson 320 of 360
commnl
Lesson 320 of 360 0/360 lessons 0/17 missions Text and logs · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Number the first set

Run nl data/users-a.txt.

nl data/users-a.txt
Number the second set

Run nl data/users-b.txt.

nl data/users-b.txt
Compare both sets

Run comm data/users-a.txt data/users-b.txt.

comm data/users-a.txt data/users-b.txt
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with explaining differences between sorted text sets.

Hint

Start with nl data/users-a.txt, inspect the result, then continue in order.

Why it matters

Explaining differences between sorted text sets helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves explaining differences between sorted text sets.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

nl [file]

Number lines from a file or supported text pipeline.

comm <left> <right>

Compare two sorted text files line by line.