How to extract 4th line from 300 text files?

Posted by Twoopah on Super User See other posts from Super User or by Twoopah
Published on 2014-06-08T20:16:54Z Indexed on 2014/06/08 21:29 UTC
Read the original article Hit count: 211

Filed under:
|

I have about 300 emails (gmail) that go like this:

Dear [name]

Order ID:123456789 Purchased by: [name I need]

(blah blah another 26 lines of crap (total of 30 lines))

What I need help is how to save gmail's mails locally into .txt and how to export 4th line from each text file. I can easily run Replace 'Purchased by: ' to remove that and keep only the names from that line in a list, but other than that I have no clue

Any ideas?

© Super User or respective owner

Related posts about email

Related posts about gmail