An open API service indexing awesome lists of open source software.

https://github.com/rudradcruze/shell-scripting-cis-18

This repository contains Bash scripting examples that cover basic to advanced concepts, including variables, loops, conditionals, arrays, functions, and file operations. Ideal for learning automation and enhancing command-line skills.
https://github.com/rudradcruze/shell-scripting-cis-18

bash csv

Last synced: 6 months ago
JSON representation

This repository contains Bash scripting examples that cover basic to advanced concepts, including variables, loops, conditionals, arrays, functions, and file operations. Ideal for learning automation and enhancing command-line skills.

Awesome Lists containing this project

README

          

# Bash Scripting and Automation

![ GitHub followers ](https://img.shields.io/github/followers/rudradcruze?style=social) ![ GitHub Repo stars ](https://img.shields.io/github/stars/rudradcruze/Phitron?style=social) ![ GitHub repo size ](https://img.shields.io/github/repo-size/rudradcruze/Phitron) ![ YouTube Channel Subscribers ](https://img.shields.io/youtube/channel/subscribers/UCTZN1mzW0AwackW7axf7-OQ?style=social) [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](/LICENSE)

Welcome to the Bash Scripting and Automation repository! This project showcases various Bash scripting examples covering fundamental and advanced concepts, such as variable usage, conditional statements, loops, arrays, functions, and file I/O operations.

## 🧰 Project Overview

This repository includes:

- **Basic Bash Scripts**: Basic examples like `Hello World`, working with variables, arithmetic operations, string manipulation, and more.
- **Conditionals**: Scripts demonstrating `if` statements, `else` statements, and nested conditionals for decision-making.
- **Loops**: Examples of `for`, `while`, and `until` loops for iterative processes.
- **Functions**: Creating reusable functions, including parameterized functions.
- **Arrays**: Defining and manipulating arrays, accessing elements, and using loops to iterate over them.
- **File Operations**: Reading and writing data to files, processing CSV files, and more.
- **User Interaction**: Scripts that prompt the user for input and respond accordingly.
- **Automation Examples**: Scripting real-world tasks such as adding, removing, and displaying items in arrays and manipulating files.

## 🛠️ Key Features

- **Modularity**: Scripts organized into logical sections for easy navigation.
- **User-Friendly**: Commands with prompts and outputs are easy to follow, suitable for beginners and experienced users alike.
- **Array Manipulation**: Real-world examples of adding and removing elements from arrays, displaying arrays, and using functions.
- **File I/O**: Efficient handling of CSV data, reading and writing to files with `cat`, `read`, and `IFS`.

## 💻 Getting Started

Clone this repository and navigate to the scripts you'd like to explore.

```bash
git clone https://github.com/rudradcruze/Shell-Scripting-CIS-18.git
cd Shell-Scripting-CIS-18
```

Run any script by giving execute permissions and executing it:

```bash
chmod +x script_name.sh
./script_name.sh
```

```bash
bash script_name.sh
```

## 📄 Requirements

- Bash (version 4.0 or later)
- Basic understanding of command line interface and shell scripting

## 👨‍💻 Usage

Browse through the various scripts and use them to learn Bash scripting basics and more advanced techniques. Modify the scripts to adapt them to your specific needs!

## 🚀 About Me

Hi, I’m **Francis Rudra D Cruze**! I’m a tech-savvy programmer who’s constantly exploring new tools and tech to expand my skills. This repository represents my journey in automation and scripting to enhance efficiency and productivity in tech operations.

## 🔗 Connect with Me

![Francis Rudra D Cruze](https://img.shields.io/badge/Name-Francis%20Rudra%20D%20Cruze-yellowgreen?style=for-the-badge)
[![LinkedIn](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/rudradcruze)
[![Twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/rudradcruze)
[![Facebook](https://img.shields.io/badge/facebook-4267B2?style=for-the-badge&logo=facebook&logoColor=white)](https://facebook.com/rudradcruze)
[![Gmail](https://img.shields.io/badge/gmail-4267B2?style=for-the-badge&logo=gmail&logoColor=white)](mailto:francisrudra@gmail.com)