1. 문제
- data.txt 라는 파일안에 millionth 단어 옆에 비밀번호가 있다고 한다.
2. 풀이
- head 명령어로 data.txt를 맛보니깐 뭔가 Key Value 형식으로 문자열이 저장되어 있다.
- grep 명령어로 millionth를 찾아보자
- data.txt를 읽는데 그 안에서 millionth라는 단어를 찾아서 출력한다.
cat data.txt | grep "millionth"
'Wargame > bandit wargame' 카테고리의 다른 글
Bandit Level 9 → 10 (0) | 2025.01.05 |
---|---|
Bandit Level 8 → 9 (0) | 2025.01.05 |
7 → 12 까지 필요한 명령어 (1) | 2025.01.05 |
Bandit Level 6 → 7 (0) | 2025.01.05 |
Bandit Level 5 → 6 (0) | 2025.01.05 |