eagle_y2j
Youngling
Help me out debug following shell scripts I hav just started learning bash but I need bug free code for my assignments hope you ppl will help me promptly
snipped
Ans
Q:2 snipped
Ans:
Q3:snipped
Answ :--- can't figure out can someone help
snipped
Ans
Code:
echo “Enter the date of birth”
read a
while [ $a - ne o]
do
r = ‘ expr $a %10’
s = ‘ expr $s + $r’
a = ‘ expr $a /a’
done
p = ‘ expr $s %10’
s = ‘ expr $s /10’
p = ‘ expr$p + $s’
echo “ Lucky no = $p”
Q:2 snipped
Ans:
Code:
For ciphering
$VI text.sh
clear
echo “enter the text or content that we want to cipher”
read.ch
len=’expr’ & Ch : K/C – C
For len in [a – z] & $.[A - Z]
Do
Echo “*”
Done
Deciphering the text document.
Echo “Enter the ciphering text document to which we want to decipher”
Read.str
*= [a – z]
* = [a – z]
l = ‘expr’. $ .str: wc –c;
foe lin *
Q3:snipped
Answ :--- can't figure out can someone help
Last edited: