Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cica!news.cs.indiana.edu!julius.cs.uiuc.edu!usc!apple!mips!wdl1.wdl.loral.com!wdl1!ed From: ed@lvw6.lvw.fac.com (Ed Allen) Newsgroups: comp.editors Subject: Re: Change cases in VI Message-ID: Date: 12 Dec 90 06:24:13 GMT References: <1990Dec11.011804.14702@pa.dec.com> Sender: root@wdl1.wdl.loral.com (SUPER USER) Followup-To: comp.editors Distribution: na Organization: /users/ed/.organization Lines: 32 In-Reply-To: reader@wsl.dec.com's message of 11 Dec 90 01:18:04 GMT Nntp-Posting-Host: lvw6 >In article <1990Dec11.011804.14702@pa.dec.com> reader@wsl.dec.com (News Reader) writes: > > Path: wdl1.wdl.loral.com!mips!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!njin!princeton!udel!haven!decuac!pa.dec.com!reader > From: reader@wsl.dec.com (News Reader) > Newsgroups: comp.editors > Date: 11 Dec 90 01:18:04 GMT > Sender: news reader > Followup-To: comp.editors > Distribution: na > Organization: DEC > Lines: 8 > > > Is there an easy way to change the whole file from upper case to lower case or > vice versa? I don't want to do 26 substitutions to change character by > character. > From within vi you could try: :%s/./\U&/g Which tells vi: on every line of the buffer, substitute for each char the UPPERCASE of that char -- Never trust a man who wears white shoes. | Ed Allen Vote Libertarian... Scare the Hell out of 'em. | Loral Command & Contr. Sys. "Sure the game is rigged! But if you don't play | ed@lvw6.lvw.loral.com you can't win!"