^\d+ (.+)
tell application "BBEdit"
select text 1 of text window 1
add line numbers selection of text window 1 with adding space
process duplicate lines selection of text window 1 duplicates options {match mode:leaving_one, match pattern:"^\\d+ (.+)", match subpattern key:all_subpatterns} output options {deleting duplicates:true, duplicates to new document:true}
end tell
I use the Process Duplicate Lines feature a lot and I'm discovering I'm trying to count them more and more. Does anyone know if there is a way to remove duplicate lines and put the number of lines that were removed next to them?
James Reynolds
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://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 bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/6E420F07-C8F8-47C7-8903-8ADEC3F8931A%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CABybPXbSr_0COpBkHuKnR857mrc_OOhig9GQacHm-0%2B27az%3DtA%40mail.gmail.com.
On Jul 26, 2022, at 8:52 AM, Roland Küffner <medien...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CABybPXbSr_0COpBkHuKnR857mrc_OOhig9GQacHm-0%2B27az%3DtA%40mail.gmail.com.