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

how to get part of string variable with echo command only?

0 Answers  


Explain about non-login shell files?

0 Answers  


I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?

1 Answers  


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

0 Answers  


What is a shell environment?

0 Answers  






What does path stand for?

0 Answers  


Given a file find the count of lines containing the word "abc".

0 Answers  


Differentiate between ‘ and ” quotes.

0 Answers  


Why do we write bin bash in shell scripts?

0 Answers  


What are the different types of commonly used shells on a typical linux system?

0 Answers  


is there any command to find user password?

4 Answers  


how is the oppurtunities for unix in the software

1 Answers  


Categories