RAM one table colums a1,a2,a3,a4 respective values 2,4,7,8
KRISH one table colums a1,a2,a3,a4 respective values 3,4,6,9
IN RAM & KRISH a4 column if comparing values RAM A4 - KRISH
A4 ( 8-9 =1 THEN print 5 or (RAM) a4 value 10 KRISH a4
values 2 then 10 -2 =8 print 5*8=40 or diff 5 print same

Answer Posted / hemanth

x=`cut -f4 ram.txt`
y=`cut -f5 krish.txt`
z=`expr x-y`
if (z==5)
then echo 5
else
w= `expr 5*z`
echo $w
fi

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default shell of solaris?

561


What is the difference between grep and egrep?

597


What language is used in terminal?

549


What is basename in shell script?

581


How to print pid of the current shell?

591






Is shell a scripting language?

563


What is a program shell?

557


How do I open the shell prompt?

565


What is the meaning of $1 in shell script?

583


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3582


How to use arguments in a script?

574


How do I open the shell in cmd?

520


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

520


How do I edit a .sh file?

613


What is the difference between scripting and coding?

529