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 to get part of string variable with echo command only?
Explain about non-login shell files?
I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?
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.
What is a shell environment?
What does path stand for?
Given a file find the count of lines containing the word "abc".
Differentiate between ‘ and ” quotes.
Why do we write bin bash in shell scripts?
What are the different types of commonly used shells on a typical linux system?
is there any command to find user password?
how is the oppurtunities for unix in the software