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



RAM one table colums a1,a2,a3,a4 respective values 2,4,7,8 KRISH one table colums a1,a2,a3,a4 resp..

Answer / 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

More Shell Script Interview Questions

What is wc in shell script?

0 Answers  


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


How to get script name inside a script?

0 Answers  


What is a shell environment?

0 Answers  


What are the four fundamental components of every file system on linux?

0 Answers  






What is eval in shell script?

0 Answers  


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

0 Answers   TCS,


What is computer cli?

0 Answers  


What language is bash?

0 Answers  


Is shell scripting a language?

0 Answers  


What is shell chemistry?

0 Answers  


What is the best shell scripting language?

0 Answers  


Categories