40 lines
887 B
Markdown
40 lines
887 B
Markdown
---
|
|
type: challenge
|
|
title: "The Mover"
|
|
xp: 50
|
|
duration: 25
|
|
difficulty: 2
|
|
---
|
|
|
|
# The Mover
|
|
|
|
> **[INCOMING — Mission Control, Earth]**
|
|
>
|
|
> Cadet, your cargo bay is built. Now stock it.
|
|
>
|
|
> When your script runs, an `inbox/` of fresh supplies has arrived.
|
|
> Each item is labeled by category — `food-`, `water-`, or `tool-`.
|
|
> Sort them into the right rooms. Then make a backup of the food
|
|
> manifest.
|
|
>
|
|
> Two commands:
|
|
>
|
|
> - `mv` — move (or rename)
|
|
> - `cp` — copy
|
|
>
|
|
> [END TRANSMISSION]
|
|
|
|
## Your Task
|
|
|
|
In `starter/starter.sh`, write the commands to:
|
|
|
|
1. Move each `food-*` file into `cargo/food/`
|
|
2. Move each `water-*` file into `cargo/water/`
|
|
3. Move each `tool-*` file into `cargo/tools/`
|
|
4. Copy `cargo/food/manifest.txt` to `cargo/food/manifest.backup`
|
|
|
|
## Objectives
|
|
|
|
- All `food-*`, `water-*`, `tool-*` files moved to the correct rooms
|
|
- `cargo/food/manifest.backup` exists
|