TIP: Click on subject to list as thread! ANSI
echo: bbbs.english
to: JEFF SMITH
from: JANIS KRACHT
date: 2017-02-02 13:18:00
subject: Adding a CR ?

Hi Jeff,

> This isn't really a BBBS question but...

>I have a bash script that exports the output of a program to a log  file. That
>part of the process works fine. But, when the program is run the next time the
> output is appended to the same line in the log file. IOW's each log entry is
> NOT on a separate line.

> As in:

> Actual:

> Output1 Output2 Output3 Etc..

> Desired:

> Output1
> Output2
> Output3
> Etc..

> Any thoughts on being able to add a CR to the program output?

You should be able to add \n to the output.  Show me your script, maybe I can
help some more.

Take care,
Janis

--- BBBS/Li6 v4.10 Toy-3
* Origin: Prism bbs (1:261/38)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.