18 lines
475 B
Bash
18 lines
475 B
Bash
#!/bin/bash
|
|
# The Scripter — combine commands into a script.
|
|
#
|
|
# When this script runs, a directory `supplies/` exists with several
|
|
# files. Your script must produce `report.txt` containing exactly two
|
|
# lines:
|
|
#
|
|
# Date: <today, in YYYY-MM-DD format>
|
|
# Files in supplies: <number of entries in supplies/>
|
|
#
|
|
# Use command substitution `$(...)` to embed command output inside
|
|
# strings:
|
|
#
|
|
# $(date '+%Y-%m-%d')
|
|
# $(ls supplies | wc -l | tr -d ' ')
|
|
|
|
# Your code here.
|