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
Is powershell a bash?
What is scripting used for?
What does egrep mean?
What is the fastest scripting language?
How to calculate the number of passed arguments?
How to get the first line from a file using just the terminal?
What is the first line in a shell script?
What is sh in shell script?
What is awk in shell scripting?
What is a scripting language simple definition?
Is shell a part of kernel?
How can you get the value of pi till a 100 decimal places?
Why do we use shell scripting?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
Why is a script important?