Afficher un message
Vieux 16/03/2008, 22h06   #6
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: split text file chunks by regex line

On 2008-03-16, superdu (nobody@cares) <superdu> wrote:
>
>
> Hi,
> Being a beginner in Linux I hit this problem which I know can be
> solved by scripting. I recovered a bunch of files from a disk crash
> that contains all my emails but they were in 2 mb chunks and in no
> particular demarkation. So i combined them into one huge file.
>
> To break them into smaller messages I need to search for a line say
> "---Next_Part ...blah bla ----
> an take everything between the two lines and create the new text
> file as 00000????.txt. Thats all that need to be done in order for
> me to read these email or resend them to myself. Sorry if I am
> missing the obvious but as I said my knowledge in scripting is very
> limited. Like upto shebang These emails are urgent otherwise I
> would have spent some time to learn a bit more scripting.
>
> Any is much appreciated.
>
> Regards.
>
> superdu
>=============
> Just a noob
>

If you have formail, you might use it to split the mail files.
  Réponse avec citation
 
Page generated in 0,04742 seconds with 9 queries