/Linux_Bash

Welcome to my Linux Lab Course Repository! This repository contains a collection of shell scripts implemented as part of my university coursework. These scripts cover a wide range of shell scripting concepts, including arithmetic operations, string manipulation, file handling, and system utilities. 🌟

Primary LanguageShell

🚀 Linux Lab Course - Shell Scripts

Welcome to my Linux Lab Course Repository! This repository contains a collection of shell scripts implemented as part of my university coursework. These scripts cover a wide range of shell scripting concepts, including arithmetic operations, string manipulation, file handling, and system utilities. 🌟


📌 Features

  • ✅ Well-structured and commented shell scripts
  • ✅ Covers basic to advanced shell scripting concepts
  • ✅ Practical scripts for real-world Linux operations
  • ✅ Useful for beginners and advanced Linux users

📜 List of Scripts

🔹 Script Name 📄 Description
arithmeticops.sh Performs basic arithmetic operations.
armstrong.sh Checks if a number is an Armstrong number.
ascdsc.sh Sorts numbers in ascending and descending order.
concatstr.sh Concatenates two strings.
factorial.sh Calculates the factorial of a number.
file.sh Demonstrates file operations.
filepermission.sh Changes file permissions.
for1to10.sh Prints numbers from 1 to 10 using a for loop.
helloworld.sh Prints "Hello, World!" to the console.
inputname.sh Reads and prints user input.
lcmhcf.sh Computes LCM and HCF of two numbers.
palindrome.sh Checks if a number is a palindrome.
palindromesentence.sh Checks if a sentence is a palindrome.
pattern.sh Prints a pattern using loops.
primenumber.sh Checks if a number is prime.
reversestr.sh Reverses a string.
sepwords.sh Separates words from a sentence.
strcmp.sh Compares two strings.
strlen.sh Finds the length of a string.
sumofdigits.sh Calculates the sum of digits of a number.
sysinfo.sh Displays system information.
voteeligible.sh Checks if a person is eligible to vote based on age.
wordcount.sh Counts the number of words in a file.

🚀 How to Run the Scripts

  1. Clone this repository to your local system:

    git clone <repository-url>
    cd <repository-name>
  2. Give execute permissions to a script before running it:

    chmod +x scriptname.sh
  3. Run the script using:

    ./scriptname.sh

🎯 Happy Scripting! 🎯