Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.unix.wizards Subject: Re: vi and sed questions Message-ID: <1646@mcgill-vision.UUCP> Date: 17 Sep 89 01:29:03 GMT References: <4370002@hpavla.HP.COM> Organization: McGill University, Montreal Lines: 16 In article <4370002@hpavla.HP.COM>, rowland@hpavla.HP.COM (Fred Rowland) writes: > sed question > The file used in the above example [ie, the vi question] is a mail > list which has to be converted into labels. I add three @ symbols to > the end of each line, then convert all of them to newlines. I can do > this in vi but I get substitution overflows as the file grows > considerably in size. I would prefer to use sed, I don't know how to do that with sed. But why not just use tr? "tr @ '\012'" should work fine. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu