Files
curriculum/1.solar-system/1.welcome/05.the-mover/starter/starter.sh

21 lines
624 B
Bash

#!/bin/bash
# The Mover — sort the supplies.
#
# When this script runs:
# - cargo/food/, cargo/water/, cargo/tools/ already exist
# - cargo/food/manifest.txt exists (empty)
# - inbox/ contains files with prefixes:
# food-apple.txt, food-bread.txt
# water-bottle.txt, water-canteen.txt
# tool-wrench.txt, tool-hammer.txt
#
# Your script must:
# 1. Move all food-*.txt files into cargo/food/
# 2. Move all water-*.txt files into cargo/water/
# 3. Move all tool-*.txt files into cargo/tools/
# 4. Copy cargo/food/manifest.txt to cargo/food/manifest.backup
#
# Tools: mv, cp
# Your code here.