[CS-FSLUG] Sed and other tools

Ed Hurst ehurst at soulkiln.org
Fri Jul 8 11:22:49 CDT 2011


On Fri, 8 Jul 2011, Ed Hurst wrote:

> On Fri, 8 Jul 2011, Robert Wohlfarth wrote:
>
>>> my $all = join( "\n", @slurp );
>>> 
>> Combine all of the lines into one long string. We need this to check for 
>> the
>> pattern across lines. This is where Perl has the advantage over sed.
>
> I really appreciate your patience.
>
> Once the lines are all "slurped" together, are they put back as they
> were, or do I have to put all the linebreaks back in manually? For
> maintenance purposes, I keep my HTML files at 72 characters.

Heh. It did indeed put the linebreaks back in, but also left the new
file double-spaced. That is, a new empty line between each previous
line.

Ed Hurst
--------
Open for Business - http://ofb.biz/
Kiln of the Soul - http://soulkiln.org/
blog - http://soulkiln.myopera.com/




More information about the Christiansource mailing list