program needed

johnl at ima.UUCP johnl at ima.UUCP
Wed Sep 4 06:34:00 AEST 1985


/* Written 12:45 am  Aug 30, 1985 by elric at 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



More information about the Comp.lang.c mailing list