Welcome to my Bash Scripting Learning Journey repository! This is a personal collection of Bash programs and scripts that I've created while learning Bash scripting. Each program represents a different concept or topic that I've explored during my journey into Bash scripting.
Throughout this learning journey, I've covered a variety of Bash scripting topics, including:
- Variables and Comments
- Reading User Input
- Conditional Statements (If-Else, Case)
- File and Directory Manipulation
- Looping (WHILE, UNTIL, FOR, SELECT)
- Working with Arrays
- Functions and Scope (Local & Global Variables)
- Script Input and Output
- and more...
Below is the list of Bash Programs included in this repository:
- 00_hello_bash.sh
- 01_variable_and_comments.sh
- 02_read_user_input.sh
- 03_pass_arguments.sh
- 04_if_statement.sh
- 05_file_test.sh
- 06_append_to_file.sh
- 07_AND_Operator.sh
- 08_OR_Operator.sh
- 09_arithmetic_operations.sh
- 10_floatingpoint_math_operations.sh
- 11_case_statement.sh
- 12_case_example.sh
- 13_array_variables.sh
- 14_whileLoop.sh
- 15_untilLoop.sh
- 16_forLoop.sh
- 17_cmmnd_execn_by_for.sh
- 18_selectLoop.sh
- 19_break_continue.sh
- 20_function.sh
- 21_local_Variable.sh
- 22_function_example.sh
- 23_readonly_variable.sh
- 24_signal_and_trap.sh
- 25_single_double_quote.sh
Below is the list of scripts I have made during my Learning Journey:
- Create a folder: A Script to create the required number of directories/folders having the date as the folder name.
- Find File in System: A script to search for a file within the Linux/Ubuntu-based system's directory structure.
- Find Files of the Same Type: This script identifies and lists all files of a given type in the specified path.
- Replace File Content: A script designed to replace specific content in a file.
- Docker Installation Script: Install Docker on an Ubuntu-based system using this script.
To explore the scripts in this repository:
-
Clone the repository to your local machine using
git clone https://github.com/lokeshdangii/Bash-Shell-Scripting.git
-
Navigate to the specific script directory using
cd Bash-Shell-Scripting
-
Make the script executable using
chmod +x script-name.sh
-
Run the script with
./script-name.sh
Feel free to examine the scripts, modify them, and experiment with your variations.
While this repository primarily documents my learning journey, I welcome constructive feedback and suggestions. If you notice any improvements that can be made to the scripts or have insights to share, please feel free to open an issue or submit a pull request.
You can reach me via email at lokeshdangi1045@gmail.com or connect with me on LinkedIn.
Thank you for visiting my repository!