Previous Level: Level 8
ssh firstname.lastname@example.org -p 2220
The password for the next level is stored in the file data.txt and is the only line of text that occurs only once.
A little bit of Theory
uniq is a command that filters input and writes to the output. Specifically, it filters based on identical lines. It has a flag
-u, which filters for unique lines (lines that appear only ones). Another interesting functionality is, for example, that it can also count (
-c) or only return duplicate lines (
The command is often used with
uniq to filter for unique lines, the lines need to be sorted.
sort sorts the lines of a text file. Furthermore, it has flags for sorting in reverse (
-r) and sorting numerically (
To find the line that occurs only once in the file, we first sort the lines and then filter for the unique one.
Next Level: Level 10