Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed replacement



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.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org