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 / 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 |
How can we find the process name from its process id?
What language is bash written in?
What is the syntax of while loop in shell scripting?
How to initialize a directory size to a variable??
What does $# stand for?
What does $$ mean in shell script?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)
Is shell scripting a language?
What is the syntax of "expr" command?
How does path variable work?
What is the difference between scripting and coding?