Level 8 → 9
Level Goal
The password for the next level is stored in the file data.txt and is the only line of text that occurs only once
Write-Up
List the content of the current directory:
ls
This confirms the presence of the data.txt file.
Display the content of the data.txt file:

Search for the line of text that occurs only once:

sort data.txt: Sorts the lines alphabetically|: Pipes the output to the next commanduniq -u: Filters for unique lines
The password retrieved: 4CKMh1JI91bUIZZPXDqGanal4xvAg0JM
Access the next level:
Enter the password when prompted.
Lessons Learned
The
sortcommand is useful for organizing data for further processinguniq -ufilters for lines that appear only once in the inputPiping commandstogether can create powerful data processing workflowsSometimes finding unique information requires multiple steps of data manipulation
-- Othmane
Last updated
Was this helpful?