Lets list the files, and read data.txt file:
ls
cat data.txt
It is very hard to find the password that occurred once in this file, so we will use multiple commands that will help us find it with PIPE line:
sort: Sorting the output.
sort
uniq -c: Find the occurrences of the passwords.
uniq -c
As we can see all the passwords are occurred 10 times in this file, except for one password that occurred once.
This is the password for the next user.
Last updated 11 months ago
cat data.txt | sort | uniq -c