Use Shell Logic and Control Flow
Let's practice writing loops in Bash
- Run the following command in your Bash terminal:
./fruitloop.sh
- Add another fruit to the loop by editing the file
fruitloop.sh
invim
or Visual Studio Code - How could extend this loop further?
- Run the the script
./topten.sh
- What happened?
- Change the script to create 11 files.
- Now write a cleanup script that removes the files using a similar loop