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. π
- β 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
πΉ 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. |
-
Clone this repository to your local system:
git clone <repository-url> cd <repository-name>
-
Give execute permissions to a script before running it:
chmod +x scriptname.sh
-
Run the script using:
./scriptname.sh