Summary: Bizarre vi problem on Solaris

From: Sanjiv K. Bhatia (
Date: Thu Sep 09 1999 - 13:10:12 CDT

Hi all:

Mark Olson solved the problem for me. The solution is to use /usr/xpg4/bin/vi
instead of other versions of vi. It also solved the problem I would have
encountered with sed, as other versions of sed rejected the reg exp I had.



Thanks to:

"Robert L. Harris" <> Mark Olson <> John Bonura <> Tim Carlson <>

Original question:

Hi all:

I want to replace multiple occurrences of a regular expression by a single one. For example, the following line


is to be replaced as


I have tried


but it does not help. I tried the exact same command on SGI IRIX 6.2 and it worked, but failed on IRIX 5.3.

I am using Solaris 2.7 on an ultra 10, and tried it on SunOS 4.1.3 as well, but without success. Please help.


Sanjiv -- Sanjiv K. Bhatia Department of Math & Computer Science University of Missouri -- St. Louis voice: (314)-516-6520 St. Louis, MO 63121-4499 fax : (314)-516-5400

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:25 CDT