[PLUG] some awk-fu or perl to word wrap a text file?
Don J.
auderive at gmail.com
Wed Oct 17 06:18:16 UTC 2007
Perfect! fmt is exactly what I was hoping for, and Text::Wrap will
come in handy someday too.
Thanks,
Don
On 10/16/07, Michael Rasmussen <mikeraz at patch.com> wrote:
> Don J. wrote:
> > My perl skills are still in the very preliminary stages ... might
> > anyone know how I could take a large text file that has no hard
> > wrapping, and apply hard wraps every 80 characters or so?
> > Any ideas?
>
> fmt -w 80 large_file > new_file
> see `man fmt` for details
>
> Not Perl, not a reinvented wheel.
>
> --
> Michael Rasmussen, Portland Oregon
> Be appropriate && Follow your curiosity
> http://www.patch.com/words/
> The fortune cookie says:
> "Who alone has reason to *lie himself out* of actuality? He who *suffers*
> from it."
> -- Friedrich Nietzsche
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list