On 24 mrt. 2013, at 05:15, TJ Luoma <[email protected]> wrote:

> If I had to guess, I'd say that Jim was probably looking for a solution he 
> could use inside BBEdit, without having to go into the Terminal.
> 
> I used BBEdit for years before I realized how easy it was to run scripts on 
> BBEdit documents, and if you've never done it, it can seem pretty 
> intimidating.
> 
> (As my old Comp Sci prof used to say: "Everything is easy when you know what 
> you're doing.")

Enter the manual:
Page 36 ("Text Filters") in the description of BBEdit's Application Support 
folder. 
In short:
* Make a folder "$HOME/Library/Application Support/BBEdit/Text Filters" if it 
doesn't exist already.
* Create a text file with the following script:

#!/bin/sh

# read from stdin, 
# sort by number, 
# count number of unique occurrences, 
# sort on the number of occurrences and finally write to stdout

/usr/bin/sort --numeric-sort | /usr/bin/uniq -c | /usr/bin/sort --numeric-sort

exit 0
# EOF

* Save this in "$HOME/Library/Application Support/BBEdit/Text Filters" under a 
recognizable name ('count unique IP addresses.sh')

Page 111 (Text Transformations -> Apply Text Filter). This is where your 
command will end up.

Open the file you need to analyze, call the script from the Text -> Apply Text 
Filter submenu.

Done.

Maarten

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
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 feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to