FWIW, a Haskell solution using this plugin:
If I want the second line, perhaps:
Get Nth Line.kmmacros (1.9 KB)
For more information, see the wiki Searching the Forum for Answers section.