From: "Jacob, Raymond A Jr" Date: 2006-12-04T03:19:25+09:00 Subject: Can one use line addresses...to select a portion of file ------_=_NextPart_001_01C71707.8C97BBC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I would like to select a portion of a file to process like I did with sed. i.e. a file called Menu with the following contents: __McDonalds__ ... ... ...(stuff deleted) _Happy_Meal__ With sed I would do something like sed -n "/__McDonalds__/,/__Happy_Meal_/p" Menu I can not find anything comparable in Ruby. I may be using the wrong words when I searched google for ruby line address. Any help will be appreciated. Thank you, Raymond ------_=_NextPart_001_01C71707.8C97BBC0--