Skip to content

b-balakrishna/Shell_Scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Scripting Basics

Welcome to the Shell Scripting Basics repository! This repository is designed to help beginners learn and practice the fundamentals of shell scripting. It contains various scripts and examples that cover essential concepts and commands in shell scripting.

Table of Contents

About

This repository aims to provide a comprehensive guide to learning shell scripting. It covers basic to intermediate level scripting concepts and offers hands-on examples to reinforce learning. Whether you're a beginner looking to get started with shell scripting or someone who wants to refresh their skills, this repository is for you!

Getting Started

To get started with these scripts, you'll need a Unix-like operating system (such as Linux or macOS) or Windows Subsystem for Linux (WSL). The repository is organized into different directories, each focusing on specific topics or concepts in shell scripting.

Scripts Included

Here is a list of some of the key scripts included in this repository:

  • hello_world.sh: A simple script that prints "Hello, World!" to the terminal.
  • variables.sh: Demonstrates the use of variables in shell scripting.
  • loops.sh: Covers different types of loops (for, while, until) with examples.
  • conditions.sh: Shows how to use conditional statements (if, else, elif) in scripts.
  • functions.sh: Explains how to create and use functions in shell scripts.
  • file_operations.sh: Examples of basic file operations like reading, writing, and appending files.
  • network_tools.sh: Basic networking scripts using tools like ping, curl, and nmap.

Feel free to explore each script and modify them to see how changes affect their behavior.

Prerequisites

Before running these scripts, ensure that you have the following:

  • A Unix-like operating system (Linux, macOS, or WSL on Windows).
  • Basic knowledge of the command line.
  • Bash shell (most Unix-like systems come with Bash pre-installed).

Usage

  1. Clone the repository to your local machine:

    ```bash git clone https://github.com/yourusername/shell-scripting-basics.git ```

  2. Navigate to the directory containing the script you want to run:

    ```bash cd shell-scripting-basics ```

  3. Make the script executable (if it’s not already):

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

  4. Run the script:

    ```bash ./script_name.sh ```

Contributing

Contributions are welcome! If you have any suggestions, improvements, or new scripts to add, feel free to open a pull request or create an issue. Please ensure your code adheres to the existing style and conventions used in this repository.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

If you have any questions or need further assistance, feel free to reach out:

About

This repo is about shell scripting basic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages