RudiC,
You're obviously correct. But, we could use CarloM's approach to the problem to avoid the need to sort the input:
As always, if someone wants to try this on a Solaris/SunOS system, they need to use /usr/xpg4/bin/awk, /usr/xpg6/bin/awk, or nawk instead of awk.
What if each of these IPs contains in each file?
Last edited by Manu1234567; 10-10-2013 at 10:45 PM..
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)
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)
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)
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)
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)
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)
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)
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)
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)