sort {filename} | uniq -c
On Aug 17, 11:19 am, Warren Michelsen <[email protected]> wrote:
> Does anyone have a shell or Perl script for BBEdit which will count identical
> lines in the front-most document and report the results?
>
> Ideally, create a new text document with a listing of each unique line and
> the number of instances of that line, perhaps preceding that line so the
> results can be sorted by number of occurrences.
>
> I've distilled my DNS server query log down to just the domain looked up and
> the type query (eliminating date, time, querying IP, etc.). Now I'd like to
> get a count of the lookups to see which are looked up most often.
>
> I have a 'Count Identical Lines' AppleScript but with 1,112,000+ lines to be
> counted, I don't even want to attempt it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or
confirmed) problem with the software, please email to "[email protected]"
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---