I have multiple files in a folder and each of them have one email message. Each message has a header in the format
Subject: formatting fonts
To: [email protected]
From: sender
email body
How can I get the body? I can get the subject , to ,from by something like "read XX".. Since there's no tag like "Body:" I cant get the email body for now
Any help will be appreciated.
You want everything but the first paragraph. sed
can do this:
sed '1,/^$/d' file.txt
What it says is -- start at the beginning, (1
) go to the first line that's blank (^$
-- has nothing between the beginning ^
and end $
) and delete it (d
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With