Learning Documentation
This repository contains five small Bash
programs created as part of the freeCodeCamp's Relational Database Certification. Each program serves a different purpose and demonstrates various Bash
scripting techniques.
-
Questionnaire (
questionnaire.sh
): A simple questionnairescript
that prompts the user with three questions and prints the responses. -
Countdown Timer (
countdown.sh
): A countdown timerscript
that takes a positive integer as an argument and counts down to zero, pausing for one second between each number. -
Bingo Number Generator (
bingo.sh
): Ascript
that generates a random bingo number between 1 and 75 and prints it along with the corresponding letter (B, I, N, G, or O
). -
Fortune Teller (
fortune.sh
): A fortune-tellingscript
that prompts the user to ask a yes or no question and provides a random response from a predefined set of answers. -
Five Program Runner (
five.sh
): Ascript
that runs all the other four programs consecutively.
Here you can see each program in more detail and an image showing the script
at work.
To run any of the programs, simply execute the corresponding .sh file in your terminal. For example:
./questionnaire.sh
To run all programs consecutively, execute the five.sh
script:
./five.sh
These scripts can be used as examples to learn Bash scripting or as standalone tools for various purposes. Feel free to modify and customize them according to your needs.