Files
curriculum/1.solar-system/1.welcome/08.the-searcher/starter/starter.sh

14 lines
420 B
Bash

#!/bin/bash
# The Searcher — find things in an archive.
#
# When this script runs, an `archive/` directory tree exists with
# many files. Somewhere in it, a single .log file mentions BREACH.
#
# Your script must produce two files:
# - logs.txt — every `.log` file path under archive/, one per line
# - breach.txt — the path to the file containing the word BREACH
#
# Tools: find, grep -rl
# Your code here.