[Top][All Lists]

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

coreutils / fmt: adding newline at end of paragraph

From: Karl Eichwalder
Subject: coreutils / fmt: adding newline at end of paragraph
Date: Wed, 29 Oct 2003 06:36:30 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Dealing with paragraphs consisting of just one long line a feature to
add a newline at the end would be handy.  At the moment I'm using this
command to turn DOS like files into files following unix conventions:

    tr -d '\15' <$f | sed 's/\([[:alnum:]].*\)$/\1\n/' | fmt

There is probably a better way to accomplish such a job.

I will attach an eample file; it is a page of a German encyclopedia from
1888-90 (Meyers Konversationslexikon):

Attachment: 0893.txt
Description: DOS like file

                                                         |      ,__o
                                                         |    _-\_<,
http://www.gnu.franken.de/ke/                            |   (*)/'(*)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]