We don't bite newbies here... much | |
PerlMonks |
Re: Re: The problem with one-liners...by petral (Curate) |
on Feb 03, 2003 at 23:40 UTC ( [id://232413]=note: print w/replies, xml ) | Need Help?? |
Oh well, a little fiddling since it's such fun stuff:
-> perl -pe '$\=$_}{' file Which leads me to a head-tail (useful eg, for finding out the range of a log file). and (not stopping while he's ahead) . . . -> perl -pe '/foo/...last' file   p
In Section
Meditations
|
|