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
What are zombie processes?
Is cmd a shell?
What is the first line in a shell script?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How will you connect to a database server from linux?
What is bash used for?
What is the first line of a shell script called?
How do I run a script from command prompt?
What is shell and shell script?
How to set an array in linux?
How do I open the shell prompt?
How do I run a shell script in powershell?
What is the syntax of while loop in shell scripting?
What exactly is a shell?
How do I open the shell in cmd?