Skip to content

ABOBAKAR-IT/Learn-Bash-Scripting

Repository files navigation

Learn Bash Scripting

Introduction

Bash is a shell, or command-line interpreter, for Unix-like operating systems. It is a powerful tool that can be used to automate tasks, manage files and directories, and interact with other programs.

This repository contains a collection of scripts that demonstrate the power of Bash. The scripts are organized into different categories, such as file management, system administration, and web development.

Getting Started

To get started with this repository, you will need to have Bash installed on your system. Once Bash is installed, you can clone the repository to your local machine using the following command:

git clone https://github.com/ABOBAKAR-IT/Learn-Bash-Scripting.git

Once the repository is cloned, you can explore the different scripts in the different directories. To run a script, simply use the following command:

bash script_name

Documentation

Each script in the repository has its own documentation. The documentation can be found in the README file in the same directory as the script.

Contributing

If you would like to contribute to this repository, please feel free to submit a pull request. When submitting a pull request, please make sure to follow the following guidelines:

  • Write clear and concise code.
  • Use descriptive variable names.
  • Document your code.
  • Test your code.

License

This repository is licensed under the MIT License.

Thank you for your interest in Learn Bash Scripting!







Hello World

1. Hello World Shell Script.md
2. How to use shebang in Shell Script.md
3. What is Built-in, Keywords and Commands in Shellscript.md
4. Print in Different Color in Shellscipt.md
5. Comments and Echo in Shell script - Multiple Line Print.md

Bash Variable

6. User Define Variable in Shell Script.md
7. Rules for Naming Variable in Sell.md
8. System Defined Variable.md
9. Take Input From User.md

Bash Argument

10. Command Line Argument.md
11. Command Line Arguments.md
12. Assign a Command's Output to a Variable.md
13. create read only variable.md

Bash Sting

14. Convert a String to Upper and Lower Case.md
15. Convert a String to SubString.md
16. Set Default Value of a Variable.md
17. Check is Command line variable passed or not.md

bash Arithmetic Operator

18. Arithmetic Operator - How to do airthmetic operator.md

Bash Function

19. Functions in Shellscript.md
20. How Shell ScriptLoad - Functions in Shellscript.md
21. How to Pass Arguments to a Functions in Shellscript.md
22. How to Create Local Variable in Functions.md
23. What is $? and test command in linux - $? and Test Command.md

Bash Decision Making

24. How to Use If With Command.md
25. How to Use If With [ (Square brackets)-Integer Comparison .md
26. [ vs [[ in Shellscript and String Comparison.md
27. How to Check File is Exist, Directory, Block Device, Character Device.md
28. What is Not Operator in Shellscript .md
29. AND operator in Shellscript.md
30. OR operator in Shellscript.md
31. If-Else In Shellscript.md
32. Nested If-Else In Shellscript.md
33. elif In Shellscript.md

Bash Switch Case

34. Case Statement In Shellscript - Case Syntax.md
35 Case Statement In Shellscript with regex .md

Bash Loop

36 While Loop In Shellscript - While Loop Syntax.md
37 While Loop In Shellscript - How to Read a File.md
38 Until Loop In Shellscript - Until Loop Syntax.md
39 For Loop In Shellscript - For Loop Syntax.md
40 Difference between $@ and $* .md
41 Break Statement in Shell script .md
42 Continue Statement in Shell script.md
43 Nested Loop in Shell script.md
44 Select in Shell script - Select from Menu in Shellscript.md
45 Debug Shellscript - Exit from Shellscript when any Command Gives Error.md

Bash Array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages