Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Shell
Schell Scripts
Shell script for leaning !!!
readME file updated
readme file update again
3 changes: 3 additions & 0 deletions abc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
git abcdefghijklmnopqrstuvwxyz
hello world
new line added
15 changes: 15 additions & 0 deletions addtion-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Prompt the user for the first number
echo -n "Enter the first number: "
read num1

# Prompt the user for the second number
echo -n "Enter the second number: "
read num2

# Calculate the sum using arithmetic expansion
sum=$((num1 + num2))

# Display the result
echo "The sum of $num1 and $num2 is: $sum"
2 changes: 2 additions & 0 deletions print.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo "this is new shell file"
echo "hello world!"
7 changes: 7 additions & 0 deletions random.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CHARS='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
LENGTH=10
RANDOM_STRING=""
for (( i=0; i<LENGTH; i++ )); do
RANDOM_STRING+=${CHARS:RANDOM%${#CHARS}:1}
done
echo "$RANDOM_STRING"