Files
curriculum/1.solar-system/1.welcome/06.the-reader/starter/starter.sh

14 lines
409 B
Bash

#!/bin/bash
# The Reader — pull stats from a log.
#
# When this script runs, mission-log.txt is in your working directory.
# Your script must produce three files:
#
# - first-five.txt — the first 5 lines of mission-log.txt
# - last-three.txt — the last 3 lines of mission-log.txt
# - line-count.txt — the line count (output of `wc -l`)
#
# Tools: head, tail, wc, redirect (>)
# Your code here.