825 B
825 B
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| challenge | The Searcher | 75 | 30 | 3 |
The Searcher
[INCOMING — Mission Control, Earth]
Cadet, an archive arrived. Somewhere in it, a single log file mentions the word
BREACH. We need it found.Two commands:
find <path> -name "<pattern>"— locate files by namegrep -rl "<text>" <path>— search file contents recursively, list only the matching file pathsYour script must produce two files:
logs.txt— every.logfile underarchive/breach.txt— the path to the file containingBREACH[END TRANSMISSION]
Your Task
In starter/starter.sh, write the two commands.
Objectives
logs.txtlists every.logfile underarchive/breach.txtcontains the path to the file mentioningBREACH