[net.lang.c] program needed

elric@proper.UUCP (elric) (08/30/85)

<crunch>

 I'm trying to upload text files from my UNIX system to my schools's Honeywell
9000. The Honeywell's editor uses a <return> to exit ENTER mode in the
editor.
 I was wondering if someone might have a program that would look for a line
constiting of only a <CR> and add a
space to that line (and any others).

  Thanx for the help
Elric of Imrryr
(Novice C programmer)

johnl@ima.UUCP (09/03/85)

/* Written 12:45 am  Aug 30, 1985 by elric@proper in ima:net.lang.c */
>  I was wondering if someone might have a program that would look for a line
> constiting of only a <CR> and add a space to that line (and any others).

That's easily done in several ways without writing any C code.  For example,
do this:

    sed 's/^$/ /' yourfile

Followups, if absolutely necessary, to net.unix, please.

John Levine, ima!johnl