Goal: Find the password and log into level 8. The password is stored in data.txt next to the word millionth.

We can use grep again which we learned in Bandit Level 6 to filter the line including millionth from data.txt. To do this we will first use cat to get the file contents into the stdout stream. We will then pipe the output from cat to our grep command so it can sort through the stdout. We could also feed the file directly into grep command.

bandit7@bandit:~$ cat data.txt | grep 'millionth'
millionth	[REDACTED]

Now we have our password for level 8 and we sign into the next level!