home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 8134 
 Maurice Kinal to Grant Weasner 
 text reformating 
 19 May 25 20:33:48 
 
MSGID: 2:280/464.113 682b95ac
CHRS: UTF-8 4
Hej Grant!

----- example.text
   The above example indicates that the backup.sh script should be executed
every day, with a delay of 15 mins. i.e When the laptop was started, executed
it only after 15 minutes.

For the above line (paragraph) this will work;

$ sed 's/^ *//' example.text | fold -sw 61 | sed 's/^/   /'
   The above example indicates that the backup.sh script should
   be executed every day, with a delay of 15 mins. i.e When the
   laptop was started, executed it only after 15 minutes.

Note that the width is 61 characters before tacking on the indentation of
three spaces.  Also note that the width is characters ***NOT*** bytes. 

$ trans -b -no-ansi -t ukrainian -i example.text | fold -sw 61 | sed 's/^/   /'
   Наведений вище приклад вказує на те, що
сценарій резервного
   копіювання.Sh повинен виконуватись щодня,
із затримкою 15
   хвилин. тобто, коли ноутбук був за
ущений, виконував його
   лише через 15 хвилин.

If the application you are using to read this is utf8 capable you will note
that the translation is still counting 16 bit characters (Cyrillic) as one. 
To get fold to wrap bytes then add the -b switch to fold since the default is
characters.  For strictly 7 and 8 bit characters, -b and -c are the same.

Het leven is goed,
Maurice

 o-   o-  -o    o-
/)   /)    (\  /)
^^   ^^    ^^  ^^
... þa þurfon swiþe lytles, þe maran ne willniaþ þonne genoges.
    They need very little who desire no more than enough.
--- GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)
 * Origin: Little Mikey's EuroPoint @ (2:280/464.113)
SEEN-BY: 18/200 50/22 103/705 105/81 106/201 124/5016 128/187 129/14
SEEN-BY: 129/305 153/757 7715 154/10 30 110 203/0 218/700 221/0 6
SEEN-BY: 226/30 227/114 229/110 111 114 206 275 300 317 400 426 428
SEEN-BY: 229/470 550 616 664 700 705 240/1120 5832 263/1 266/512 280/464
SEEN-BY: 280/5003 291/111 292/854 8125 301/1 310/31 320/219 322/757
SEEN-BY: 341/66 234 342/200 396/45 423/120 460/58 256 1124 5858 467/888
SEEN-BY: 633/280 712/848 770/1 902/26 5020/400 545 5054/30 5075/35
PATH: 280/464 460/58 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca