Hi,

I did not expect `uniq -c` to output multiple values for non-uniq input 
based on the location of the input in the file.

[EMAIL PROTECTED] nesscg]$ uniq --version
uniq (coreutils) 4.5.3

I've attached the file in question.  My script uses this line on it.

[EMAIL PROTECTED] nesscg]$ /bin/cat /tmp/mail-abuse/todays-list.txt | 
/bin/awk '{ print $6;}' | /usr/bin/uniq -c
      8 vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
      4 vlan180-034-124.maconline.McMaster.CA[130.113.34.124]:
      7 vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:


I think the above is wrong.  The first and last should be rolled into one 
entity and printed as 15 hits on that string.  At least thats what I 
thought `uniq` was going to do but apparently it is aware of the location 
of the strings.

I have had to call `sort` to work around this.  Is this the intended 
output.  If so please put a note about this in the man page for `uniq`

Thanks,
Chris Ness
00:01:22 - MSGid C59805A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
10:55:22 - MSGid F250F5A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
10:56:35 - MSGid 2700F5A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
17:14:43 - MSGid 641145A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
17:39:17 - MSGid 1EF4A5A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
17:44:25 - MSGid 29FF85A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
17:58:02 - MSGid 8C0055A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
18:02:42 - MSGid D0AB75A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
20:36:44 - MSGid D1BC95A626: - vlan180-034-124.maconline.McMaster.CA[130.113.34.124]:
20:38:03 - MSGid 503075A626: - vlan180-034-124.maconline.McMaster.CA[130.113.34.124]:
22:06:44 - MSGid 188FB5A626: - vlan180-034-124.maconline.McMaster.CA[130.113.34.124]:
22:08:31 - MSGid D35155A626: - vlan180-034-124.maconline.McMaster.CA[130.113.34.124]:
23:13:52 - MSGid 6D05E5A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
23:18:18 - MSGid A697E5A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
23:21:57 - MSGid 927B85A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
23:29:20 - MSGid 5B7775A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
23:44:16 - MSGid 11AAA5A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
23:46:12 - MSGid 05CA45A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
23:47:15 - MSGid 75B785A626: - vlan270-029-228.maconline.McMaster.CA[130.113.29.228]:
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to