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 you find out how long the system has been running?
Is shell scripting difficult?
give me some website where i can get unix and testing meterials
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 the difference between a shell variable that is exported and the one that is not exported?
What is the difference between a variable and value?
Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.
What are the different types of commonly used shells on a typical linux system?
What is sh in shell script?
What language is shell scripting?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?