On Wed, January 31, 2007 12:32 pm, Ralph Shumaker wrote: > I want to know how to use vi to do search and replace. Is there > something easier to use than "help" to find out how? > > I want to replace all instances of > "^[0-9][A-Z]" with > "^[0-9] [A-Z]". > > I've been making these and other changes in gedit manually. But this is > one set that could be done so much faster with regular expressions. > > TIA >
Sometimes I write a quick perl program for just such things. jhriv could prob'ly show you a 1-liner. Hint: Make a prstine copy of the before file and then test test test. -- Lan Barnes SCM Analyst Linux Guy Tcl/Tk Enthusiast Biodiesel Brewer -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
