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
Why are there shells on the beach?
How does shell scripting work?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
What shell is bin sh?
What language is used in terminal?
Is shell scripting a language?
What is path variable bash?
What is the conditional statement in shell scripting?
What is bash command used for?
What is the syntax of while loop in shell scripting?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Is shell scripting a programming language?
Why do we use shell scripting?
What are the default permissions of a file when it is created?
Is shell scripting useful?