diff --git a/README.md b/README.md index c6345487..68012f69 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Shell -Schell Scripts +Shell script for leaning !!! +readME file updated +readme file update again diff --git a/abc.txt b/abc.txt new file mode 100644 index 00000000..7984ee06 --- /dev/null +++ b/abc.txt @@ -0,0 +1,3 @@ +git abcdefghijklmnopqrstuvwxyz +hello world +new line added diff --git a/addtion-script.sh b/addtion-script.sh new file mode 100644 index 00000000..5f136d84 --- /dev/null +++ b/addtion-script.sh @@ -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" diff --git a/print.sh b/print.sh new file mode 100644 index 00000000..7637069b --- /dev/null +++ b/print.sh @@ -0,0 +1,2 @@ +echo "this is new shell file" +echo "hello world!" diff --git a/random.sh b/random.sh new file mode 100644 index 00000000..6140386f --- /dev/null +++ b/random.sh @@ -0,0 +1,7 @@ +CHARS='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' +LENGTH=10 +RANDOM_STRING="" +for (( i=0; i