Bandit 7 → 8
Goal: find the password sitting next to the word millionth in a large data file.
Approach
Section titled “Approach”bandit7@bandit:~$ grep millionth data.txtmillionth <password>Password
dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEcWhy it works
Section titled “Why it works”grep scans the file line by line and prints those matching the pattern, so a single keyword extracts its record from a file of millions of lines without ever reading the whole thing yourself.