Warren Michelsen shell, perl script to count identical lines?
Aug 17, 2009; 08:19
Warren Michelsen
shell, perl script to count identical lines?
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 bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com 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 "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Aug 17
Fritz Anderson Re: shell, perl script to count identical lines?
Aug 17, 2009; 08:28
Fritz Anderson
Re: shell, perl script to count identical lines?
Aug 17
Rich Siegel Re: shell, perl script to count identical lines?
Aug 17, 2009; 08:34
Rich Siegel
Re: shell, perl script to count identical lines?
Aug 17
Warren Michelsen Re: shell, perl script to count identical lines?
Aug 17, 2009; 12:20
Warren Michelsen
Re: shell, perl script to count identical lines?
Aug 17
Warren Michelsen Re: shell, perl script to count identical lines?
Aug 17, 2009; 12:20
Warren Michelsen
Re: shell, perl script to count identical lines?
Aug 17
Warren Michelsen Re: shell, perl script to count identical lines?
Aug 17, 2009; 12:20
Warren Michelsen
Re: shell, perl script to count identical lines?
Aug 17
Warren Michelsen Re: shell, perl script to count identical lines?
Aug 17, 2009; 12:20
Warren Michelsen
Re: shell, perl script to count identical lines?
Aug 18
stetner Re: shell, perl script to count identical lines?
Aug 18, 2009; 01:37
stetner
Re: shell, perl script to count identical lines?
Aug 18
john_burgess Re: shell, perl script to count identical lines?
Aug 18, 2009; 06:57
john_burgess
Re: shell, perl script to count identical lines?
Aug 18
Lewis@Gmail Re: shell, perl script to count identical lines?
Aug 18, 2009; 19:48
Lewis@Gmail
Re: shell, perl script to count identical lines?
Aug 19
Ronald J Kimball Re: shell, perl script to count identical lines?
Aug 19, 2009; 08:19
Ronald J Kimball
Re: shell, perl script to count identical lines?
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!