Skip to content

Bandit 8 → 9

OverTheWire Linux Progressive

Goal: find the single line of text that appears exactly once in data.txt.

bandit8@bandit
bandit8@bandit:~$ sort data.txt | uniq -u
<password>
Password4CKMh1JI91bUIZZPXDqGanal4xvAg0JM

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.