This repository contains Bash scripting projects created while learning Bash scripting on freeCodeCamp.
This repository holds my solutions for the "Learn Bash Scripting by Building Five Programs" curriculum on freeCodeCamp. The projects demonstrate fundamental Bash scripting concepts, including variables, conditionals, loops, functions, input handling, and operators.
- questionnaire.sh: Asks basic questions like name, location, and favorite coding website.
- countdown.sh: Takes an integer argument and counts down to zero with a one-second interval.
- bingo.sh: Generates a random number.
- fortune.sh: Asks a question and provides a random response from a predefined array.
- five.sh: Executes all five programs in sequence.
-
Clone the repository:
git clone https://github.com/Md-Talim/fcc-bash-scripting-projects.git -
Navigate to the project directory:
cd fcc-bash-scripting-projects -
Make the desired script executable (example with
questionnaire.sh):chmod +x questionnaire.sh -
Run the script (example with
questionnaire.sh):./questionnaire.shFor
countdown.sh, provide an integer argument:./countdown.sh 10
- Variables
- Conditionals (
if,else,elif) - Loops (
for,while,until) - Functions
- Handling Input
- Operators