in reply to Re: how do I line-wrap while copying a file to stdout?
in thread how do I line-wrap while copying a file to stdout?

I think you had it except for the grep command. I'm not sure what that's there for. I have:
chomp $string; print join( "\n", split( /(.{80})/, $string ) ), "\n";

Replies are listed 'Best First'.
Re: Re: Re: how do I line-wrap while copying a file to stdout?
by bpaulsen (Initiate) on Apr 20, 2001 at 19:32 UTC
    Sorry. For a drop in replacement, you can use:
    chomp; print join( "\n", split( /(.{80})/ ) ), "\n";