Re: Need to split long lines in mail archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Apr 09, 2012 at 01:09:59PM -0400, James B. Byrne wrote:
> CentOS-6.2
> 
> I am investigating how to split long lines present in a
> Mailman generated html archives.  Mailman places the email
> bodies within <pre></pre> tags and some users have MUAs
> that send entire paragraphs as one long line.
> 
> I have looked at fmt and fold but these assume a pipeline
> from stdout to a fixed filename, which presumably is best

fold reads stdin and writes stdout. I have a script I use all
the time that depends on that, so I know it works that way.

here's an excerpt from "man fold" on my system:

FOLD(1)                          User Commands                         FOLD(1)

NAME
       fold - wrap each input line to fit in specified width

SYNOPSIS
       fold [OPTION]... [FILE]...

DESCRIPTION
       Wrap input lines in each FILE (standard input by default), writing to standard output.


-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
               But God demonstrates his own love for us in this: 
                         While we were still sinners, 
                              Christ died for us.
------------------------------- Romans 5:8 (niv) ------------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux