script-4
-
Upload
ralagarsan -
Category
Documents
-
view
215 -
download
2
description
basic of shell scripting
Transcript of script-4
#! /bin/bashecho "Hey what's Your First Name?";read a;echo "welcome Mr./Mrs. $a, would you like to tell us, Your Last Name";read b;echo "Thanks Mr./Mrs. $a $b for telling us your name";echo "*******************"echo "Mr./Mrs. $b, it's time to say you good bye"#!/bin/bashMAX_NO=0echo -n "Enter Number between (5 to 9) : "read MAX_NOif ! [ $MAX_NO -ge 5 -a $MAX_NO -le 9 ] ; then echo "WTF... I ask to enter number between 5 and 9, Try Again" exit 1ficlearfor (( i=1; i=i; s-- )) do echo -n " " done for (( j=1; j=1; i-- ))do for (( s=i; s