Bandit 8 → 9
Goal: find the single line of text that appears exactly once in data.txt.
Approach
Section titled “Approach”bandit8@bandit:~$ sort data.txt | uniq -u<password>Password
4CKMh1JI91bUIZZPXDqGanal4xvAg0JMWhy it works
Section titled “Why it works”uniq only collapses adjacent duplicate lines, so the input has to be sorted first to bring every repeat together. -u then prints only the lines that never repeat, isolating the one unique entry.