help with formatting

Chacotako

Member
Apr 29, 2001
154
1
81
Hey all,

I recently had to pull quite a few emails from our archiver. I now need to parse through all of them and pull out specific pieces of information.

I found the following works:
Code:
cat *.eml | grep --color 'To:\|From:\|Date:' >> output.txt

I do get what I expected, but it's pretty ugly:
Code:
Tahoma","sans-serif"'>From:</span></b><span style=3D'font-size:10.0pt;font-=
>Sent:</b> Friday, June 24, 2011 9:39 AM<br><b>To:</b> account, user<br><b=
ze:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style=3D=

What other options do I have? I'm not very well versed with grep, awk or the like.

Thanks