Hi, Am Freitag, 13. August 2004 15:19 schrieb Errin Larsen: > Hey guys (and gals, I imagine!), > > I'm really new to perl. I've been working through some beginners > tutorials and now I need (want!) to use perl to overhaul something I > wrote in the past. I've got a script (in bash) that I use that has a > particular sed command in it. The command is as follows: > > sed -n '/System Temperatures/,/==*/p' FILENAME >
perl -ne 'print if /^System Temperatures/ .. /^==*/' FILENAME > The file in question has text that looks like this: -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>