in reply to Re: Break continuous lines of a text file based on character lengths
in thread Break continuous lines of a text file based on character lengths
orperl -pi.bak -e 'BEGIN{$/=\104;$\=qq/\n/}' filename.txt
For Windows, you'll have to adapt the quote characters around the code.perl -lpi.bak -e 'BEGIN{$/=\104}' filename.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re(2): Break continuous lines of a text file based on character lengths
by davido (Cardinal) on Apr 20, 2004 at 16:02 UTC | |
|
Re: Re(2): Break continuous lines of a text file based on character lengths
by tariqahsan (Beadle) on Apr 20, 2004 at 15:40 UTC |