From: Ken Wolcott <[EMAIL PROTECTED]> > What search string do I use on google or perldoc so that I know how to > display a specified range of lines from a file (like sed -n 24, 48p > filename)?
Whatever you like. I doubt you'll find anything. > s2p no longer operates the way I used to use it back in perl 3x days > :-) > > man s2p really didn't help me understand what perl syntax would give > me the desired result that sed does :-( I don't think there is any special syntax for this. Nor do I think there should be. If you want to be cool you may use something like this, but I'd rather not. perl -p -e "$_ = '' unless $. == 24 .. $. == 48" perl -p -e "$_ = '' unless $. >= 24;exit if $. >= 48" Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>