08-29-2008
10 More Discussions You Might Find Interesting
1. Programming
int percent (int a, int b)
{
if (b/a*100 > 25)
return TRUE;
else
return FALSE;
}
I want to calculate what percentage of a is b.
say if b = 48, a = 100
so b is 48% of a
but wouldnt b/a give me 0 ??? what can be done ?? (6 Replies)
Discussion started by: the_learner
6 Replies
2. Shell Programming and Scripting
i have 3 files like
total.dat=18
equal.dat=14
notequal.dat=16
i need find the equal percentange means:
equalpercentage = ($equal.dat / $total.dat * 100)
How i can do this ?
I tried some of the answers to calculate the percentage in this forums.but it couldn't worked.Some one please... (6 Replies)
Discussion started by: bobprabhu
6 Replies
3. Shell Programming and Scripting
Hi
I need a awk script to calculate percentage.
I have to pass the pararmeters in to the awk script and calculate the percentage.
Sum = 50
passed = 43
failed = 7
I need to pass these value in to the awk script and calculate the percentage.
Please advice me. (8 Replies)
Discussion started by: bobprabhu
8 Replies
4. UNIX for Dummies Questions & Answers
A short excerpt of my .txt file looks like:
CXRA3Z2J9MQKR B
CXRA3Z2J9MQKR A
CXRA3Z2J9MQKR C
CXRA3Z2J9MQKR B
A162JX4ML69UIC C
A162JX4ML69UIC A
FZ9Z19TI2XOA5 A
FZ9Z19TI2XOA5 C
FZ9Z19TI2XOA5 B
FZ9Z19TI2XOA5 B
BRNTTJUB8GXE9 A
BRNTTJUB8GXE9 A
... (7 Replies)
Discussion started by: pxalpine
7 Replies
5. Shell Programming and Scripting
hello,
please can you help me.
jj and kk are two numbers which are the result of an sql program.
I would like to calculate the ratio jj/kk*100.
I have done this:
ratio=$((jj/kk * 100)) or ratio=`expr $jj \/ expr $kk) but the result is 0
What can i do?
Thanks for help. (3 Replies)
Discussion started by: likeaix
3 Replies
6. Shell Programming and Scripting
Hello Expert,
I need to transpose Date-Timestamp based on same column values and calculate time difference. The input file would be as below and required output is mentioned in the bottom
INPUT File
========
08/23/2012 12:36:09 JOB_5340
08/23/2012 12:36:14 JOB_5340
08/23/2012... (2 Replies)
Discussion started by: asnandhakumar
2 Replies
7. Shell Programming and Scripting
Input File:
5081
2058
175
8282
2358
7347
6612
3459
END OF INPUT FILE
I need to know how to calculate minimum,maximum,average of the values in the file and also what percentage is the values over some user defined value for example 1000 and what percentage of value is over 5000.
By... (2 Replies)
Discussion started by: aroragaurav.84
2 Replies
8. Shell Programming and Scripting
I have 100 csv files like:
file_city_1 file_city_2 file_city_3 file_city_4
City name is variable, there is 25 cities, each city has 4 region. Each of the 4 region contain some statistics like:
parameter1 : number1
parameter1 : number2
.....
parameter50 : number50
... (7 Replies)
Discussion started by: Meacham12
7 Replies
9. Shell Programming and Scripting
Hello,
Ive got a bunch of numbers here e.g:
6065
6094
6348
6297
6161
6377
6338
6290
How do I find out if there is a difference between 10% or more between one of these numbers ? I am trying to do this in Bash.. but no luck so far.. Does anyone have an Idea ??
Thanx,
- Pascal... (9 Replies)
Discussion started by: denbekker
9 Replies
10. Shell Programming and Scripting
I have a input text file in this format:
ITEM1 10.9 20.1
ITEM2 11.6 12
ITEM3 14 15.7
ITEM5 20 50.6
ITEM6 25 23.6
I want to print those lines which have more than 5% difference between second and third columns. (8 Replies)
Discussion started by: ctrld
8 Replies
LEARN ABOUT DEBIAN
depmod.d
DEPMOD.D(5) depmod.d DEPMOD.D(5)
NAME
depmod.d - Configuration directory for depmod
SYNOPSIS
/usr/lib/depmod.d/*.conf
/etc/depmod.d/*.conf
/run/depmod.d/*.conf
DESCRIPTION
The order in which modules are processed by the depmod command can be altered on a global or per-module basis. This is typically useful in
cases where built-in kernel modules are complemented by custom built versions of the same and the user wishes to affect the priority of
processing in order to override the module version supplied by the kernel.
The format of files under depmod.d is simple: one command per line, with blank lines and lines starting with '#' ignored (useful for adding
comments). A '' at the end of a line causes it to continue on the next line, which makes the files a bit neater.
COMMANDS
search subdirectory...
This allows you to specify the order in which /lib/modules (or other configured module location) subdirectories will be processed by
depmod. Directories are listed in order, with the highest priority given to the first listed directory and the lowest priority given to
the last directory listed. The special keyword built-in refers to the standard module directories installed by the kernel.
By default, depmod will give a higher priority to a directory with the name updates using this built-in search string: "updates
built-in" but more complex arrangements are possible and are used in several popular distributions.
override modulename kernelversion modulesubdirectory
This command allows you to override which version of a specific module will be used when more than one module sharing the same name is
processed by the depmod command. It is possible to specify one kernel or all kernels using the * wildcard. modulesubdirectory is the
name of the subdirectory under /lib/modules (or other module location) where the target module is installed.
For example, it is possible to override the priority of an updated test module called kmod by specifying the following command:
"override kmod * extra". This will ensure that any matching module name installed under the extra subdirectory within /lib/modules (or
other module location) will take priority over any likenamed module already provided by the kernel.
COPYRIGHT
This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc.
SEE ALSO
depmod(8)
AUTHORS
Jon Masters <jcm@jonmasters.org>
Developer
Robby Workman <rworkman@slackware.com>
Developer
Lucas De Marchi <lucas.demarchi@profusion.mobi>
Developer
kmod 06/19/2012 DEPMOD.D(5)