![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unique sort contents of a variable | praveenbvarrier | Shell Programming and Scripting | 2 | 05-20-2008 04:12 AM |
| Sort and Unique in Perl | deepakwins | Shell Programming and Scripting | 20 | 02-11-2008 06:25 PM |
| Shell script to check the unique numbers in huge data | namishtiwari | Shell Programming and Scripting | 7 | 08-10-2007 06:38 AM |
| count data separate by comma | bucci | Shell Programming and Scripting | 10 | 04-25-2007 08:54 PM |
| Script to count unique number of user loged in | elchalateco | Shell Programming and Scripting | 1 | 09-30-2002 08:32 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
for me works..
also you can try:sort HITS | uniq $2 | wc -l |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
The first 2 also work fine for me:
Code:
cat HITS| awk ' {print $2}' | sort | uniq | wc -l
awk '{print$2}' HITS | sort | uniq | wc -l
|
|
#10
|
|||
|
|||
|
apologies to Franklin52, i shall not doubt another post by you again.
it didnt work because for some reason lurking in my script was a } which is why it wouldnt run. sorry again |
|
#12
|
|||
|
|||
|
Code:
awk '{print $2}' 65308.sort.d | uniq -c
|
|
#13
|
|||
|
|||
|
|
|
#14
|
|||
|
|||
|
sorry. i will remember that in future.
***************************************thread closed**************************************** |
|||
| Google The UNIX and Linux Forums |