Paul Cartwright <[EMAIL PROTECTED]>: > On Fri November 23 2007, Douglas A. Tutty wrote: > > When was the last time we had a questio from someone wondering how do do > > something in ed? > > maybe BUT... when you use VI, you can still do the ":" commands that are ed > based.. > I use them all the time, I just got so used to them, I never ask questions > about them.. > :1,$s/whatever/whichever/g > > which means, on every line change whatever to whichever and do it for every > occurrence on every line.
Shorter: :%s/foo/bar/g # I think; untested. Been a while. > I still use ed commands.. not daily, but. I never learned ed, except in vi. -- Any technology distinguishable from magic is insufficiently advanced. (*) http://blinkynet.net/comp/uip5.html Linux Counter #80292 - - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]