in reply to Extract first word from certain lines in a file

Your question isn't very clear. I have no idea what you mean by redball + greenball = ball.

If you are trying to get multiple lines from a file it is usually good to accumulate the information you retrieve from the file, between Product: markers, as either a scalar with both lines inside of it or as an array with one line per array element.

Maybe if you rephrase your question we can help you out.

Frank Wiles <frank@wiles.org>
http://www.wiles.org

  • Comment on Re: Extract first word from certain lines in a file