![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unique sort contents of a variable | praveenbvarrier | Shell Programming and Scripting | 2 | 05-20-2008 07:12 AM |
| Sort and Unique in Perl | deepakwins | Shell Programming and Scripting | 20 | 02-11-2008 09:25 PM |
| Shell script to check the unique numbers in huge data | namishtiwari | Shell Programming and Scripting | 7 | 08-10-2007 09:38 AM |
| count data separate by comma | bucci | Shell Programming and Scripting | 10 | 04-25-2007 11:54 PM |
| Script to count unique number of user loged in | elchalateco | Shell Programming and Scripting | 1 | 09-30-2002 11:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to sort, and count unique data all at once?
Quote:
In the file called HITS.hits my results are displayed liked this: filename.hits: 35.114.42.113 Mon Nov 21 08:26:41 GMT 2005 What i want my code to do is to search all of the unique IP addresses. so count all the adresses that appear. but just count repeat IPs that are the same as 1. so if my file had: filename.hits: 11.111.11.111 filename.hits: 33.333.33.333 filename.hits: 22.222.22.222 filename.hits: 44.33.222.111 filename.hits: 11.111.11.111 the answer would be 4. |
|
||||
|
menu script
ok i have tried this and it didnt work :s
maybe i just entered it wrong. i entered: Quote:
|
|
||||
|
ok basically i am running the script so i dont think i need to cat the file as when i get to the point where i want this function the HITS file is already created so i just need to search the file to get the results.
either way i tried Quote:
Quote:
Quote:
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| linux, solaris, ubuntu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|