Path: utzoo!utgpu!watmath!att!dptg!rutgers!mailrus!uflorida!haven!adm!xadmx!mcgough@wrdis01.af.mil From: mcgough@wrdis01.af.mil (Jeffrey B. McGough) Newsgroups: comp.unix.questions Subject: Re: substitute in vi Message-ID: <20558@adm.BRL.MIL> Date: 9 Aug 89 12:22:25 GMT Sender: news@adm.BRL.MIL Lines: 16 >How can I do the following: > for every word (word as far as vi is concerned) in a file, > capitalize the first letter > >Mike Chinni How about--- :%s/\<[a-z]/\u&/g This should do it... --- Lator, Satisfaction altogether Guaranteed by Doctor Tarr and Professor Fether... Jeffrey B. McGough WR-ALC UNIX Systems Administrator (mcgough@wrdis01.af.mil)