-
Download the files below. Then try running the
textstats.sh
script with each of them. -
Play wordle using the script below. Can you figure out
- How to print the secret word before you start guessing? and
- Where bash is getting the list of 5-letter words?
-
Using the
fileinfo.sh
script below, complete the script to display basic information about any file passed as an argument to the script. You will have to complete line 8 to begin, as well as useecho
to display values to the user. BONUS: add another variable that calculates how many lines the file contains. Display the 4 file attributes. -
Write a
bash
mad-lib script. Here is an AI mad-lib generator to steal from, or use ChatGPT/Gemini/etc. -
Write a script that will fetch, decompress, and clean a TSV bundle, then convert it into a CSV file and re-compress it as a
tar.gz
bundle. Write it in general form so that you can pass the URL of any remote tar.gz file to it. Instructions are here.
- Sample data -
https://s3.amazonaws.com/ds2002-resources/labs/lab3-bundle.tar.gz
- tar-zipped TSV - Stock Data -
https://s3.amazonaws.com/ds2002-resources/labs/stock_data.tsv
- TSV - Moby Dick -
https://s3.amazonaws.com/ds2002-resources/labs/mobydick.txt
(plain text) - Flight Log -
https://s3.amazonaws.com/ds2002-resources/labs/flights.csv
- CSV
- Awesome
bash
- a collection of scripts and resources.