Wargame: Bandit
Level: 8
Category: Linux Fundamentals
Description
data.txt contains many lines; the password is the only line that appears exactly once. All other lines are duplicates.
Overview
sortgroups identical lines together;uniq -uthen prints only lines that appear once.- Duplicate detection with
uniqrequires sorted input, becauseuniqonly compares consecutive lines.
Solution
sort data.txt | uniq -u
Password
EN632PlfYiZbn3PhVK3XOGSlNInNE00t