Level 9

U r uniq

The challenge here is to find the password that appears only once in data.txt

Sample data from data.txt

Here we will use a bash pipe '|' to redirect the output of one command as input for the second command.

We will use two commands to get the result, namely sort and uniq

Sort will sort the lines inside data.txt in an orderly fashion, which will then be passed onto uniq to delete duplicates. We will use the -u option in uniq to find unique lines instead of groupings of words.

Therefore the resultant command is as follows:

This gives us the password as follows:

Result

Last updated