I have a very large file (a 20 MB Thunderbird .mbox mail file) which
contains many base64 sections interleaved in the text.
I want to decode in-line the base64 sections back into readable text while
keeping the non-base64 text.
I made a Find pattern to select the base64 sections:
(^[0-9a-zA-z+/]{76}\r)+.*\r
Then I run a Unix Filter "decode_selected_base64.sh" to replace the
selection with the decoded base64:
#!/bin/sh
base64 -D "$1"
I can thus process them one-by-one by
cmd-G to find next block of base64
clicking Run on "decode_selected_base64.sh" in the Unix Filters palette
to convert it to text
This works, but is very laborious!
Does anyone know of a way to
a) combine both the Find and Filter into a single Filter or Script, and
b) have it run through the entire file converting all instances?
I'm using BBEdit 9.6.3 under Mac OS X 10.12.6, but could upgrade BBEdit if
necessary.
Many thanks,
--
This is the BBEdit Talk public discussion group. 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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.