oh-my-git/levels/files/files-delete

37 lines
866 B
Text
Raw Permalink Normal View History

title = Unexpected Roommates
cards = file-delete
2020-11-13 11:43:22 +01:00
[description]
The first day at Time Travel School comes to an end and you receive the key to your room.
Full of excitement you open the door just to find... spider webs! Spider webs everywhere!
Remove all the spider webs you can find with the remove card!
2020-11-13 11:43:22 +01:00
[cli]
On the command line, you can easily delete all files ending in -web using this command:
rm *web
2020-11-13 11:43:22 +01:00
[setup]
echo A tiny spider web is next to your window. > tiny_web
echo A big spider web sticks above your bed. > big_web
echo A cozy bed. > bed
echo An extra thick spider web is right beside your door. > thick_web
2020-11-13 11:43:22 +01:00
[win]
# Remove all spider webs.
! ls | grep thick_web &&
! ls | grep big_web &&
! ls | grep tiny_web
# But make sure you keep your bed!
ls | grep bed
2020-11-13 11:43:22 +01:00
[congrats]
Your room looks now very tidy and cozy! Time to unpack your stuff!