10-05-2013
Searching max
Basically I have a file num1 which contains IP addresses
[/CODE]
I need to find max element of third number in IP address which is 25! And after that relating to max third number I need to find max fourth number which is 237 (6th line)
Last edited by Manu1234567; 10-10-2013 at 10:45 PM..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My HP-UX 11.0 system is supporting an Oracle database. I have found a number of references on the Net to the "Max I/O size" in relation to setting Oracle parameters.
How can I tell what my max i/o size is? I originally made the assumption that it was referring to my stripe size but now I think... (1 Reply)
Discussion started by: keelba
1 Replies
2. Shell Programming and Scripting
My code below is supposed to find which company had the most business and then print the appropriate fields from another file which are the companies ID number and name. I can loop through awk and display all the total amount of business for each company but I need help in only printing out the... (1 Reply)
Discussion started by: Enigma23
1 Replies
3. Shell Programming and Scripting
I have a file like:
<word> 5
<word> 3
<word> 5
<word> 2
<word> 6
<word> 8
<word> 12
and i need to know the max value of the second column, in this case 12.
Plz help me!
Actually i need the TOTAL, AVERANGE and MAX VALUE and i'm using this in... (10 Replies)
Discussion started by: Lestat
10 Replies
4. Shell Programming and Scripting
Hi All,
I want to choose the maximum value from a column values.
eg -
234
23
567
43
2456
5
678
8978
from thses values how to choose the max value ?
thanks.
roger. (3 Replies)
Discussion started by: Nayanajith
3 Replies
5. Shell Programming and Scripting
1> Can anyone tell me what is the maximum no of parameters that can be passed to a file
2> i have 100 files amongst which in 500 files i have a string which needs to be searched how would get the names of those files. (1 Reply)
Discussion started by: Shivdatta
1 Replies
6. Programming
From reading my C book, Im aware that the integers have a maximum value which depends on what type of processor you are using (since they use 16-bit or 32-bit instructions).
Now I know pointers are very flexible, since they can reference anything, but in the case of integer pointers, can they... (4 Replies)
Discussion started by: JamesGoh
4 Replies
7. Linux
Hi All,
I have this userid:
# cat /etc/shadow | grep mysql
mysql:$1$O12345678901234/.:123456:0::14:::
Max password expiration is blank. What does it mean?
If it's like this below
mysql:$1$O12345678901234/.:123456:0:99999:14:::
then there's no expiration.
Thanks in advance for... (1 Reply)
Discussion started by: itik
1 Replies
8. Shell Programming and Scripting
without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies
9. Shell Programming and Scripting
I've the following data set. I would like to look at the column 3 and only use the rows which has the max value for column 3
Can we use the awk or sed to achieve it.
10 2 10 100
11 2 20 100
12 2 30 100
13 2 30 100
14 ... (7 Replies)
Discussion started by: rudoraj
7 Replies
LEARN ABOUT SUNOS
mlib_matrixmaximummag_f32c
mlib_MatrixMaximumMag_U8C(3MLIB) mediaLib Library Functions mlib_MatrixMaximumMag_U8C(3MLIB)
NAME
mlib_MatrixMaximumMag_U8C, mlib_MatrixMaximumMag_S8C, mlib_MatrixMaximumMag_S16C, mlib_MatrixMaximumMag_S32C, mlib_MatrixMaximumMag_F32C,
mlib_MatrixMaximumMag_D64C - find the first element with the maximum magnitude in a matrix
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_MatrixMaximumMag_U8C(mlib_u8 *max, const mlib_u8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMaximumMag_S8C(mlib_s8 *max, const mlib_s8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMaximumMag_S16C(mlib_s16 *max, const mlib_s16 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMaximumMag_S32C(mlib_s32 *max, const mlib_s32 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMaximumMag_F32C(mlib_f32 *max, const mlib_f32 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMaximumMag_D64C(mlib_d64 *max, const mlib_d64 *x, mlib_s32 m, mlib_s32 n);
DESCRIPTION
Each of these functions finds the first element with the maximum magnitude in a complex matrix, then puts the real and imaginary parts of
it into max[0] and max[1], respectively.
PARAMETERS
Each of the functions takes the following arguments:
max Pointer to the first element with the maximum magnitude
x Pointer to the first element of the source matrix.
m Number of rows in the source matrix
n Number of columns in the source matrix
RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_MatrixMinimumMag_U8C(3MLIB), mlib_VectorMaximumMag_U8C(3MLIB), mlib_VectorMinimumMag_U8C(3MLIB), attributes(5)
SunOS 5.10 9 Nov 2004 mlib_MatrixMaximumMag_U8C(3MLIB)