diff --git a/Arthemetic-Operators.sh b/Arthemetic-Operators.sh index 0957818..0a29f3f 100644 --- a/Arthemetic-Operators.sh +++ b/Arthemetic-Operators.sh @@ -5,6 +5,7 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please enter some value: \c" read -r a echo -e "Please enter another value: \c" diff --git a/AutomateLoginSSH.sh b/AutomateLoginSSH.sh new file mode 100644 index 0000000..2550268 --- /dev/null +++ b/AutomateLoginSSH.sh @@ -0,0 +1,20 @@ +#!/usr/bin/expect -f +## Testing expect command + +## echo the test +puts "\nGet HostName\n" + +## execute ssh command to connect to remote host +spawn ssh 192.168.175.130 "hostname" + +## Look for password string +expect "password:" + +## Send the password +send "redhat\r" + +puts "\nGet df command output\n" +spawn ssh 192.168.175.130 "df -h" +expect "password:" +send "redhat\r" +interact diff --git a/CpuMemDisk.sh b/CpuMemDisk.sh index 8e986ae..441fe0c 100644 --- a/CpuMemDisk.sh +++ b/CpuMemDisk.sh @@ -4,7 +4,7 @@ # Version:1.0 # Created Date: 2019-05-02 # Modified Date: -# WebSite: https://server-computer.com +# WebSite: https://arkit.co.in # Author: Ankam Ravi Kumar HOSTNAME=$(hostname) diff --git a/Even_or_Odd_Number.sh b/Even_or_Odd_Number.sh new file mode 100644 index 0000000..a8294a1 --- /dev/null +++ b/Even_or_Odd_Number.sh @@ -0,0 +1,10 @@ +#!/bin/bash +## To find given number is Even number or Odd Number + +read -p "Enter a number: " number + +if [ $((number % 2)) -eq 0 ]; then + echo "$number is an even number." +else + echo "$number is an odd number." +fi diff --git a/arkit.co.in-nested-if.sh b/ExamResults.sh similarity index 94% rename from arkit.co.in-nested-if.sh rename to ExamResults.sh index 5be4b8d..b718bdf 100644 --- a/arkit.co.in-nested-if.sh +++ b/ExamResults.sh @@ -1,10 +1,11 @@ #!/bin/bash #Purpose: Validate and report Student subject marks #Version:1.0 -#Created Date: Wed May 16 19:00:52 IST 2018 +#Created Date: 2024 sep #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please Enter Maths Marks: \c" read -r m echo -e "Please Enter Physics Marks: \c" diff --git a/agtb.sh b/agtb.sh index ac23317..0a67093 100644 --- a/agtb.sh +++ b/agtb.sh @@ -7,14 +7,14 @@ #Author: Ankam Ravi Kumar # START # -echo "enter the a vloue $a" +echo -e "enter the a value: \c" read a -echo "enter the b volue $b" +echo -e "enter the b value: \c" read b if test "$a" -gt "$b" ; then echo "$a is greater than $b" else -echo "$b is greater than $a" + echo "$b is greater than $a" fi # END # \ No newline at end of file diff --git a/answers.sh b/answers.sh new file mode 100644 index 0000000..697f19b --- /dev/null +++ b/answers.sh @@ -0,0 +1,15 @@ +#!/usr/bin/expect + +set timeout -1 + +spawn ./questions.sh +expect "Hi\r" +send -- "Hi\r" + +expect "How are you?\r" +send -- "I am fine\r" + +expect "Whats your Name?\r" +send -- "My name is Ravi\r" + +expect eof diff --git a/array.sh b/array.sh index ca7d6f8..7c61603 100644 --- a/array.sh +++ b/array.sh @@ -6,6 +6,7 @@ #WebSite: https://arkit.co.in #Author: Ankam Ravi Kumar # START # + fruits=( "Apple" "Orange" "Banana" "Sapota" ) fruits[3]='Green Apple' for fruit in ${fruits[@]} diff --git a/casestatement.sh b/casestatement.sh index 149c6f2..e68b229 100644 --- a/casestatement.sh +++ b/casestatement.sh @@ -6,9 +6,9 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # -echo -c "Enter a number: \c" +echo -e "Enter a number: \c" read -r a -echo -c "Enter b number: \c" +echo -e "Enter b number: \c" read -r b echo "1. Sum of values" @@ -16,7 +16,7 @@ echo "2. Substraction" echo "3. Multiplication" echo "4. Division" echo "5. Modulo division" -echo -c "Enter Your Choice from above menu: \c" +echo -e "Enter Your Choice from above menu: \c" read -r ch case $ch in 1) echo "Sum of $a + $b = "`expr $a + $b`;; diff --git a/convert_and_update_mysql.sh b/convert_and_update_mysql.sh new file mode 100644 index 0000000..98f4d25 --- /dev/null +++ b/convert_and_update_mysql.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +n=1 +until [ $n -gt 11196 ] +do +EXIRECORDS=$(mysql -u root -pPASSWORD -h 192.168.2.100 -e "SELECT sn,tarsize from DATABASE.Table1 where sn='"$n"'" |tail -n1 |grep $n) + +RECORDNUMBER=$(echo $EXIRECORDS |awk '{print $1}') +FOLDERSIZE=$(echo $EXIRECORDS |awk '{print $2}') + +KB=$(echo $EXIRECORDS |awk '{print $2}' |grep K |wc -l) + if [ $KB -ge 1 ]; then + K=$(echo $EXIRECORDS |awk '{print $2}' |sed 's/K//g') + BYTES=$($K * 1024 |bc |awk -F. '{print $1}') + mysql -u root -pPASSWORD -h 192.168.2.100 -e "UPDATE DATABASE.Table1 SET tarsize='"$BYTES"' where sn='"$RECORDNUMBER"'" + fi + +MB=$(echo $EXIRECORDS |awk '{print $2}' |grep M |wc -l) + if [ $MB -ge 1 ]; then + M=$(echo $EXIRECORDS |awk '{print $2}' |sed 's/M//g') + BYTES=$(echo $M*1024*1024 |bc |awk -F. '{print $1}') + mysql -u root -pPASSWORD -h 192.168.2.100 -e "UPDATE DATABASE.Table1 SET tarsize='"$BYTES"' where sn='"$RECORDNUMBER"'" + fi + +GB=$(echo $EXIRECORDS |awk '{print $2}' |grep G |wc -l) + if [ $GB -ge 1 ]; then + G=$(echo $EXIRECORDS |awk '{print $2}' |sed 's/G//g') + BYTES=$(echo $G*1024*1024*1024 |bc |awk -F. '{print $1}') + mysql -u root -pPASSWORD -h 192.168.2.100 -e "UPDATE DATABASE.Table1 SET tarsize='"$BYTES"' where sn='"$RECORDNUMBER"'" + fi + +TB=$(echo $EXIRECORDS |awk '{print $2}' |grep T |wc -l) + if [ $TB -ge 1 ]; then + T=$(echo $EXIRECORDS |awk '{print $2}' |sed 's/T//g') + BYTES=$(echo $T*1024*1024*1024*1024 |bc |awk -F. '{print $1}') + mysql -u root -pPASSWORD -h 192.168.2.100 -e "UPDATE DATABASE.Table1 SET tarsize='"$BYTES"' where sn='"$RECORDNUMBER"'" + fi + + +n=`expr "$n" + 1` + +done diff --git a/details.sh b/details.sh index 8a64338..cf701a3 100644 --- a/details.sh +++ b/details.sh @@ -7,7 +7,7 @@ #Author: Ankam Ravi Kumar # START # -echo "WEL COME TO $USER" +echo "WEL COME TO $USERNAME" echo "Your present working directory is `pwd`" echo "current logged in users are `who`" echo "Today date is `date`" diff --git a/diskover-2.1.1.zip b/diskover-2.1.1.zip new file mode 100644 index 0000000..8bf687f Binary files /dev/null and b/diskover-2.1.1.zip differ diff --git a/for-loop.sh b/for-loop.sh index d399c5f..d431716 100644 --- a/for-loop.sh +++ b/for-loop.sh @@ -6,14 +6,14 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # -for i in `cat hostfile` +for server in `cat /scripts/servers` do -ping -c 1 $i > /tmp/pingresults +ping -c 1 $server > /tmp/ping valid=`echo $?` -if [ $valid -gt 1 ]; then -echo "$i Host is not reachable" +if [ $valid -eq 0 ]; then +echo "$server is up" else -echo "$i Host is Up" +echo "$server is Down" fi done # END # diff --git a/1forloop.sh b/forloop.sh similarity index 100% rename from 1forloop.sh rename to forloop.sh diff --git a/1function.sh b/function.sh similarity index 92% rename from 1function.sh rename to function.sh index dc12048..48dbf17 100644 --- a/1function.sh +++ b/function.sh @@ -1,10 +1,11 @@ #!/bin/bash #Purpose: Function example. Taking Backup of Particular File #Version:1.0 -#Created Date: Sat May 26 00:27:50 IST 2018 +#Created Date: 2024 Sep 21 #Modified Date: #WebSite: https://arkit.co.in #Author: Ankam Ravi Kumar + # START # function takebackup (){ if [ -f $1 ]; then diff --git a/generate_win_host_config.sh b/generate_win_host_config.sh new file mode 100644 index 0000000..cc6259e --- /dev/null +++ b/generate_win_host_config.sh @@ -0,0 +1,24 @@ +#!/bin/bash +## Purpose: To Generate Nagios Configuration files within minute of time. +## Author: Ankam Ravi Kumar + +mkdir -p /scripts/WinServers +cat /scripts/serverlist.txt | while read LINE +do + HostIP=`echo $LINE | cut -d, -f1` + HostName=`echo $LINE | cut -d, -f2` + +NSCLIENTSTATE=$(/usr/local/nagios/libexec/check_nt -H $HostIP -p 12489 -v CLIENTVERSION -s Password | echo $?) +if [ $NSCLIENTSTATE -eq 0 ]; then + sed -e "s/XXXX/$HostName/g; s/ZZZZ/$HostIP/g" /scripts/Template-Windows.cfg > /scripts/WinServers/$HostName.cfg + +for i in D E F G H I J K L M N O P Q R S T U V W X Y Z; +do +/usr/local/nagios/libexec/check_nt -H $HostIP -p 12489 -v USEDDISKSPACE -s Password -l $i -w 90 -c 95 +COMMANDSTATUS=$(echo $?) +if [ $COMMANDSTATUS -eq 0 ] || [ $COMMANDSTATUS -eq 2 ];then +sed -e "s/XXXX/$HostName/g; s/ZZZZ/$i/g" /scripts/Drives.cfg >> /scripts/WinServers/$HostName.cfg +fi +done +fi +done diff --git a/hi.sh b/hi.sh index b0365ef..6652c64 100644 --- a/hi.sh +++ b/hi.sh @@ -9,13 +9,13 @@ tmp=`date | cut -c12-13` if [ $tmp -lt 11 ] ; then -echo "Good Mornind have a nice day $USER" +echo "Good Mornind have a nice day $USERNAME" elif [ $tmp -gt 11 -a $tmp -lt 16 ] ; then -echo "Good Ofter noon $USER" +echo "Good Ofter noon $USERNAME" elif [ $tmp -gt 15 -a $tmp -lt 19 ] ; then -echo "Good Evening $USER" +echo "Good Evening $USERNAME" else -echo "Good Night Sweet dreams $USER" +echo "Good Night Sweet dreams $USERNAME" fi echo "Now the time is `date |cut -c12-19`" diff --git a/if-elif-if.sh b/if-elif-if.sh index ee2e09b..da88e28 100644 --- a/if-elif-if.sh +++ b/if-elif-if.sh @@ -5,6 +5,7 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please Enter a Value: \c" read -r a echo -e "Please Enter b Value: \c" diff --git a/if-else-statement.sh b/if-else-statement.sh index 1393446..7e5b04f 100644 --- a/if-else-statement.sh +++ b/if-else-statement.sh @@ -6,7 +6,7 @@ #Website: https://arkit.co.in #Author: Ankam Ravi Kumar # START # -echo -e "Enter any value> \c" +echo -e "Enter any value: \c" read -r a echo -e "Enter any value: \c" read -r b diff --git a/info.sh b/info.sh index b32785c..caac61a 100644 --- a/info.sh +++ b/info.sh @@ -10,8 +10,8 @@ echo "Hi you there" echo "what is your name? (Type your name here and press Enter)" read NM -echo "Hi $NM Good Morning" -echo "your currently logged in as $USER" +echo "Hi $NM Good Morning" +echo "your currently logged in as $USERNAME" echo "your present working directory is `pwd`" # END # diff --git a/memusage.sh b/memusage.sh new file mode 100644 index 0000000..45187ca --- /dev/null +++ b/memusage.sh @@ -0,0 +1,18 @@ +#!/bin/bash +## Monitoring Memory usage of the server +# Version:1.0 +# Created Date: 2022-Jan-07 +# WebSite: https://arkit.co.in +# Author: Ankam Ravi Kumar + +HOSTNAME=$(hostname) +DATED=$(date "+%Y-%m-%d %H:%M:%S") +THRESHOLD=80 +TOADDRESS=aravikumar48@gmail.com + +MEMUSAGE=$(free | grep Mem | awk '{print $3/$2 * 100.0}' |awk -F. '{print $1}') +if [ $MEMUSAGE -ge $THRESHOLD ]; then +echo "$HOSTNAME, $DATED, %MEMUSAGE" >> /var/log/memusage_history +echo "$HOSTNAME, $DATED, %MEMUSAGE" > /tmp/memusage +mail -s "$HOSTNAME $DATED Mem Usage: $MEMUSAGE" $TOADDRESS <<< /tmp/memusage +fi diff --git a/myfirstscript.sh b/myfirstscript.sh index ad53bc9..2c39c40 100644 --- a/myfirstscript.sh +++ b/myfirstscript.sh @@ -7,7 +7,7 @@ #Modified by: # START -echo "Welcome $USER" +echo "Welcome $USERNAME" echo "Your present working directory is `pwd`" echo "Today date is `date`" # END diff --git a/nestedif.sh b/nestedif.sh index 5be4b8d..17d421b 100644 --- a/nestedif.sh +++ b/nestedif.sh @@ -5,6 +5,7 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please Enter Maths Marks: \c" read -r m echo -e "Please Enter Physics Marks: \c" diff --git a/or-operator.sh b/or-operator.sh index 5a66bd7..2931df0 100644 --- a/or-operator.sh +++ b/or-operator.sh @@ -5,7 +5,8 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # -echo -e "Enter First Numberic Value: \c" + +echo -e "Enter First Numeric Value: \c" read -r t echo -e "Enter Second Numeric Value: \c" read -r b @@ -13,7 +14,7 @@ read -r b if [ $t -le 20 -o $b -ge 30 ]; then echo "Statement is True" else -echo "Flase, Statement Try Again." +echo "False Statement, Try Again." fi # END # diff --git a/questions.sh b/questions.sh new file mode 100644 index 0000000..c93a791 --- /dev/null +++ b/questions.sh @@ -0,0 +1,11 @@ +#!/bin/bash +## Questions + +echo "Hi" +read $REPLY + +echo "How are you?" +read $REPLY + +echo "Whats your Name?" +read $REPLY diff --git a/regex.sh b/regex.sh new file mode 100755 index 0000000..376bb77 --- /dev/null +++ b/regex.sh @@ -0,0 +1,40 @@ +#!/bin/bash +#Purpose: regex examples +#Version: 1.0 +#Create Date: Sun Nov 27 00:27:33 EST 2022 +#Modified Date: + +# START # + +numString1="1234" +numString2="16789" +numString3="1579" + + +echo "Example 1" +if [[ $numString1 =~ ^1 ]]; then + echo "String \"$numString1\" starts with a \"1\", and matches regex: ^1" +fi + +echo "Example 2" +if [[ $numString2 =~ ^1 ]]; then + echo "String \"$numString2\" starts with a \"1\", and matches regex: ^1" +fi + +echo "Example 3" +if [[ $numString3 =~ ^1.7 ]]; then + echo "String \"$numString2\" starts with a \"1\", followed by any character, and followed by a 7. " + echo "This string matches the regex: ^1.7" +fi + +echo "Example 4" +if [[ ! $numString1 =~ ^1.7 ]]; then + echo "String \"$numString1\" does not start with a \"1\", followed by any character, and followed by a 7. " + echo "This string does not match the regex: ^1.7" +fi + +echo "Example 5" +if [[ $numString2 =~ 9$ ]]; then + echo "String \"$numString2\" ends with a \"9\", and matches the regex: 9$" +fi + diff --git a/serverinformation.sh b/serverinformation.sh new file mode 100644 index 0000000..85d4d14 --- /dev/null +++ b/serverinformation.sh @@ -0,0 +1,118 @@ +#!/bin/bash + +mkdir -p /Inventory +sudo chmod -R 777 /Inventory/ +mkdir -p /tmp/asset +touch /tmp/asset/hostname.txt +if [ -f /tmp/asset/hostname.txt ];then + echo "File /tmp/asset/hostname.txt Exists" +else + mkdir /tmp/asset + touch /tmp/asset/hostname.txt +fi +touch /tmp/temptext +TEMP=/tmp/temptext +LOG=`ls /tmp/asset/hostname.txt` +echo "## Host Information" > $LOG +echo "Host Name : `hostname` " >> $LOG +echo "`sudo /sbin/ifconfig -a |grep "inet" | awk 'BEGIN { FS = ":" } ; { print $2 }'`" >> $TEMP +echo "IP Address : `egrep '^10' $TEMP |awk '{ print $1}'`" >> $LOG +echo "IP Address: `hostname -I`" >> $LOG +echo "ip a |grep inet |grep -v "::" |awk '{print $2}'" >> $LOG +echo "iDrac Details: `racadm getniccfg |grep "IP Address" |grep -v "::"`" >> $LOG +echo "Server Type: `servertype=$(lscpu | grep Hypervisor | wc -l); if [ $servertype -gt 0 ]; then echo "VitualMachine"; else echo "Physical"; fi`" >> $LOG +echo -en '\n' >> $LOG + +## Collecting Hardware Details ## +echo " " >> $LOG +echo "## Hardware Information" >> $LOG +echo " " >> $LOG +echo "Serial Number : `sudo lshal |grep system.hardware.serial`" >> $LOG +echo "Serial Number : `sudo /usr/sbin/dmidecode -s system-serial-number`" >> $LOG +echo "Serial Number : `sudo cat /sys/class/dmi/id/product_serial`" >> $LOG +echo "Model Number : `sudo lshal |grep system.hardware.product`" >> $LOG +echo "Model Number : `sudo /usr/sbin/dmidecode |grep "SKU Number"`" >> $LOG +echo "Model Number : `sudo cat /sys/class/dmi/id/product_name`" >> $LOG +echo "Hardware Vendor : `sudo lshal |grep system.hardware.vendor`" >> $LOG +echo "Hardware Vendor : `sudo cat /sys/class/dmi/id/chassis_vendor`" >> $LOG +echo "Hardware Info : `sudo dmesg |grep DMI`" >> $LOG + +## Redhat Version ## +echo " " >> $LOG +echo "## OS Version" >> $LOG +head -n1 /etc/issue >> $LOG +cat /etc/redhat-release >> $LOG +echo "Kernel Version: `uname -r`">> $LOG +echo "OS Version: `hostnamectl | egrep "Operating System" | cut -d ' ' -f5-`" >> $LOG + +## CPU Info ## +echo " " >> $LOG +echo " " >> $LOG +echo "## CPU Information" >> $LOG +grep "model name" /proc/cpuinfo |uniq >> $LOG +COUNTT=$(cat /proc/cpuinfo |grep "model name" | wc -l) +echo "$COUNTT Cores" >> $LOG + +## RAM/MEMORY Info ## +echo " " >> $LOG +echo " " >> $LOG +echo "## Memory Information" >> $LOG +grep MemTotal /proc/meminfo >> $LOG +y=`grep MemTotal /proc/meminfo |awk '{ print $2 }'` +mb="$(( $y / 1024 ))" +gb="$(( $mb / 1024 ))" +echo "RAM : $gb GB" >> $LOG + +## Swap Information ## +echo " " >> $LOG +echo "## Swap Information" >> $LOG +y1=$(free -k |grep Swap |awk '{print $2}') +mb1="$(( $y1 / 1024 ))" +gb1="$(( $mb1 / 1024 ))" +echo "Swap Size: $gb1 GB" >> $LOG + +## Disk Information ## +echo " " >> $LOG +echo "## Disk Information" >> $LOG +lsblk |grep -E 'part|disk' $LOG + +## LVM Information ## +echo " " >> $LOG +echo "## Physical Volumes" >> $LOG +pvs >> $LOG + +echo " " >> $LOG +echo "## Volume Groups" >> $LOG +vgs >> $LOG + +echo " " >> $LOG +echo "## Logical Volumes" >> $LOG +lvs >> $LOG +echo " " >> $LOG + +## Partition Information ## +echo "## DF Command Output" >> $LOG +echo " " >> $LOG +df -Ph -x tmpfs -x devtmpfs| sed s/%//g | awk '{ if($5 > 0) print $0;}' >> $LOG + +echo " " >> $LOG +echo "## Port Information" >> $LOG +ss -alntup |column -t |grep -E 'tcp|udp' >> $LOG + +echo " " >> $LOG +echo "## Service Information" >> $LOG +systemctl list-units --type=service --state=running |grep -vE 'systemd|selinux' >> $LOG + +echo " " >> $LOG +echo "## Docker Containers" >> $LOG +sudo docker ps -a >> $LOG + +echo " " >> $LOG +echo "## DNS Server Details" >> $LOG +cat /etc/resolv.conf >> $LOG + +echo "" >> $LOG +echo "## Server Uptime" >> $LOG +uptime >> $LOG + +sudo cp /tmp/asset/`hostname`.txt /Inventory/`hostname`-`date "+%Y-%m-%d"`.txt diff --git a/useradd_improved.sh b/useradd_improved.sh new file mode 100644 index 0000000..d41a150 --- /dev/null +++ b/useradd_improved.sh @@ -0,0 +1,37 @@ +#!/bin/bash +## Author: Ankam Ravi Kumar +## Date: 21st Sep 2024 +## Purpose: To Create a users in Linux + +check_command_success() { + if [ $? -ne 0 ]; then + echo "Error: $1" + exit 1 + fi +} + +if [ $(id -u) -ne 0 ]; then + echo "Error: Only root may add a user to the system." + exit 2 +fi + +# Prompt for the username and password +read -p "Enter username: " username +read -s -p "Enter password: " password +echo + +if id "$username" &>/dev/null; then + echo "Error: User '$username' already exists!" + exit 1 +fi + +encrypted_password=$(perl -e 'print crypt($ARGV[0], "password")' "$password") +check_command_success "Failed to encrypt the password." + +useradd -m -p "$encrypted_password" "$username" +check_command_success "Failed to add the user." + +passwd -e "$username" +check_command_success "Failed to set password expiry." + +echo "Success: User '$username' has been added to the system!" diff --git a/userexists.sh b/userexists.sh index da5e3c2..1b8dde7 100644 --- a/userexists.sh +++ b/userexists.sh @@ -5,7 +5,7 @@ ##WebSite: https://arkit.co.in ##Start -echo "Please Enter User name you want check:\c" +echo -e "Please Enter User name you want check: \c" read user grep $user /etc/passwd > /dev/null if [ $? -eq 0 ]; then diff --git a/variables.sh b/variables.sh index 7d765aa..7f3128d 100644 --- a/variables.sh +++ b/variables.sh @@ -6,6 +6,7 @@ #website: https://arkit.co.in #Author: Ankam Ravi Kumar # START # + A=10 Ba=23 BA=45 diff --git a/while-loop.sh b/while-loop.sh index b636866..3f314c7 100644 --- a/while-loop.sh +++ b/while-loop.sh @@ -1,8 +1,10 @@ -While Loop Example, print any given number table. - #!/bin/bash -## While Loop Example with 2 table -echo -e "Please provide one value:\c" +# While Loop Example with 2 table, print any given number table. +# See Full Explanation of this above shell script [while loop](https://www.youtube.com/Techarkit?sub_confirmation=1) + +#START + +echo -e "Please provide one value: \c" read -r c i=1 while [ $i -le 10 ] @@ -12,4 +14,4 @@ echo "$c * $i = $b" i=`expr $i + 1` done -See Full Explanation of this above shell script [while loop](https://www.youtube.com/Techarkit?sub_confirmation=1) +#END \ No newline at end of file