substitute in vi

Jeffrey B. McGough mcgough at wrdis01.af.mil
Wed Aug 9 22:22:25 AEST 1989


	>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 at wrdis01.af.mil)



More information about the Comp.unix.questions mailing list