Hands-on task
This task is step 6 of the course “Text in the terminal: grep, sed, awk”
Find lines that are in only one file
There are two sorted lists of users: /root/all.txt (all) and /root/active.txt (active). Find the users that are in all.txt but absent from active.txt (that is, the inactive ones) and write them to /root/inactive.txt.
Reference:comm
What you'll practise:
- comm
- sorted files
- set difference
- column suppression