- 1-Introduction.sh: Contains introductory scripts to get started with bash scripting.
Contains scripts demonstrating various data types in bash:
- 2.1-Strings.sh: Working with strings, including length, substrings, substitution, and case conversion.
- 2.2-Numbers.sh: Performing arithmetic operations with integers and floating-point numbers.
- 2.3-Arrays.sh: Using arrays, including declaration, iteration, and manipulation.
- 2.4-Maps(bash).sh: Using associative arrays (maps) in bash.
- 2.4-Maps(zsh).sh: Using associative arrays (maps) in zsh.
- 2.5-Booleans.sh: Simulating boolean values in bash.
- 2.6-Dates.sh: Handling dates and times.
- 2.7-Null.sh: Representing and checking for null values.
- 2.8-Processes.sh: Managing processes, including running in the background and listing processes.
Contains scripts demonstrating conditional statements in bash:
- 3.1-If_Else.sh: Basic if-else statements.
- 3.2-Truthy_&_Falsy.sh: Understanding truthy and falsy values.
- 3.3-Numeric_Operators.sh: Using numeric comparison operators.
- 3.4-Logical_Operators.sh: Using logical operators (and, or).
- 3.5-String_Operators.sh: Using string comparison operators.
- 3.6-File_Operators.sh: Using file test operators.
Contains scripts demonstrating loops in bash:
- 4.1-For.sh: Using for loops to iterate over lists and arrays.
- 4.2-While.sh: Using while loops to execute code while a condition is true.
- 4.3-Until.sh: Using until loops to execute code until a condition is true.
- 4.4-Select.sh: Using select loops to create simple menus.
Contains scripts demonstrating functions in bash:
- 5 -Functions.sh: Using functions introduction: how to declare it, how to call it, function parameters
-
Clone the repository:
git clone <repository-url> cd shell-guide
Bash or Zsh shell Basic understanding of shell scripting
Feel free to submit issues or pull requests if you find any bugs or have suggestions for improvements.