sed replacement

Jeff Kinz jkinz at kinz.org
Mon May 16 09:58:10 EDT 2005


On Mon, May 16, 2005 at 09:44:25AM -0400, Jerry Feldman wrote:
> I just tried it on my system: (here is a fragment of the file I used)
> -------------------------
> collection currently include compilers for the Ada, C, C++, Objective
> C, Chill, FORTRAN, and Java languages. Unlike utilities such as p2c,
> this is a true compiler, not just a converter.
> --------------------------
> sed -e "s/Chill/\n\nChill/" gpc.README
> The result is:
> collection currently include compilers for the Ada, C, C++, Objective
> C, 
> 
> Chill, FORTRAN, and Java languages. Unlike utilities such as p2c,
> -------------------------------------------

Jerry - this isn't working on my system.  Example:
[jkinz at redline jkinz]$ cat foo
text
text
text
text
[jkinz at redline jkinz]$ cat foo | sed -e "s/^/\n\n/"
nntext
nntext
nntext
nntext

Note - no new lines.  also tried 
's.  Any ideas as to what in the
local environment might cause this?  

my LANG=en_US


-- 
Jeff Kinz, Emergent Research, Hudson, MA.



More information about the Discuss mailing list