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

is there any command to find user password?

4 Answers  


What is shell prompt?

0 Answers  


What is the way to do multilevel if-else's in shell scripting?

0 Answers  


What is the use of script interpreter in shell scripting?

3 Answers  


What are the Different types of shells?

5 Answers  






Is bash a shell script?

0 Answers  


Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance

5 Answers   HP,


What happens on a system call?

0 Answers  


How will I insert a line "abcdef" at every 100th line of a file?

2 Answers  


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

0 Answers  


How to know that your remote server is ruing smoothly or not in unix?

1 Answers  


What is the use of echo in shell script?

0 Answers  


Categories