A fishing pole question rather than a fish question :-)
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)?
Zeus gave you the solution, but the background is explained in perldoc perlop. Search for "Range Operators"
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 :-(
Yeah, but s2p does point to the solution. If you run
s2p -e 24,48p
and look at the lines between the BOS: and EOS: labels, you'll find the code:
if ( 24..48 ) { print $_, "\n"; }
Which is using the range operator just like Zeus showed.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>