This repository contains a collection of shell scripts demonstrating various shell programming techniques
- Unix-like operating system (Linux, macOS)
- Bash shell (version 4.0 or higher recommended)
- Basic understanding of shell scripting
- Clone the repository:
git clone https://github.com/yourusername/shell-programming.git
cd shell-programmingTo ensure all scripts are executable, run the following command:
chmod +x file_name/*.shchmod +x: Adds execute permissionscripts/*.sh: Applies to all .sh files
To run a script, use:
./scripts/script_name.sh# Run Node Health script
./scripts/node_health.sh
# Run name script
./scripts/name.sh- name.sh: hello world
- ifelse.sh: syntax for if else in bash
- for_loop.sh: synatx for implementing for loop in bash
- node_health.sh: Display node health
- Always review scripts before executing
- Use
sudocautiously with shell scripts - Implement proper error handling in production environments
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
[Mohammad Asad Rahmani] [email : asadrahmani3101@gmail.com ]