Hello Alexandru,
there are really no „attachments to text files“, I suppose you have an email and are looking at the text version of it.
Basically, there are ways to cut pieces from a file, in your case it might start with
> Content-Type: image/jpeg;
The question is, where will it end? Do you have a unique string that comes after the base64 block that is easily recognizable?
Then something like
Find Content-Type: image/jpeg;(?s).+?<end marker>
Replace with empty
using grep
might do the job.
Else you may rely on the length of the lines, but this is obviously error-prone:
Find (^.{60}\n)+
Replace with empty
using grep
leaving the content info strings intact.
Cheers
Thomas
> --
> This is the TextWrangler Talk public discussion group.
> If you have a feature request or would like to report a problem,
> please email "
sup...@barebones.com" instead of posting here.
> ---
> You received this message because you are subscribed to the Google Groups "TextWrangler Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
textwrangler...@googlegroups.com.