https://github.com/emanoelcampos/bash-scripting-five-programs
This repository contains five interactive Bash scripts demonstrating various scripting techniques. The scripts include a questionnaire, a countdown timer, a bingo number generator, a fortune teller, and a program runner that executes all the other scripts consecutively.
https://github.com/emanoelcampos/bash-scripting-five-programs
rpa script
Last synced: 3 months ago
JSON representation
This repository contains five interactive Bash scripts demonstrating various scripting techniques. The scripts include a questionnaire, a countdown timer, a bingo number generator, a fortune teller, and a program runner that executes all the other scripts consecutively.
- Host: GitHub
- URL: https://github.com/emanoelcampos/bash-scripting-five-programs
- Owner: emanoelcampos
- Created: 2024-03-18T02:32:28.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T02:03:16.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T12:11:52.494Z (about 1 year ago)
- Topics: rpa, script
- Language: Shell
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bash Scripting: Building Five Programs
*Learning Documentation*
This repository contains five small `Bash` programs created as part of the [freeCodeCamp's Relational Database Certification](https://www.freecodecamp.org/learn/relational-database/). Each program serves a different purpose and demonstrates various `Bash` *scripting techniques*.
## Programs
1. **Questionnaire (`questionnaire.sh`)**: A simple questionnaire `script` that prompts the user with three questions and prints the responses.
2. **Countdown Timer (`countdown.sh`)**: A countdown timer `script` that takes a positive integer as an argument and counts down to zero, pausing for one second between each number.
3. **Bingo Number Generator (`bingo.sh`)**: A `script` that generates a random bingo number between 1 and 75 and prints it along with the corresponding letter (`B, I, N, G, or O`).
4. **Fortune Teller (`fortune.sh`)**: A fortune-telling `script` that prompts the user to ask a yes or no question and provides a random response from a predefined set of answers.
5. **Five Program Runner (`five.sh`)**: A `script` that runs all the other four programs consecutively.
## See more details
Here you can see each program in more detail and an image showing the `script` at work.

- [Questionnaire](bash-programs/questionnaire/README.md)
- [Countdown Timer](bash-programs/countdown/README.md)
- [Bingo Number Generator](bash-programs/bingo/README.md)
- [Fortune Teller](bash-programs/fortune/README.md)
- [Five Program Runner](bash-programs/five/README.md)
## Usage
To run any of the programs, simply execute the corresponding .sh file in your terminal. For example:
```bash
./questionnaire.sh
```
To run all programs consecutively, execute the `five.sh` script:
```bash
./five.sh
```
## Getting Started
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.