seed: curriculum content
This commit is contained in:
17
1.solar-system/1.welcome/09.the-scripter/starter/starter.sh
Normal file
17
1.solar-system/1.welcome/09.the-scripter/starter/starter.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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.
|
||||
Reference in New Issue
Block a user