Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!ucsd!ucbvax!mtxinu!sybase!skye!timm From: timm@skye.sybase.com (Tim Meazell) Newsgroups: comp.editors Subject: Re: Change cases in VI Message-ID: <12137@sybase.sybase.com> Date: 19 Dec 90 18:26:55 GMT References: <1990Dec11.011804.14702@pa.dec.com> <1990Dec11.041717.18604@hoss.unl.edu> Sender: news@Sybase.COM Distribution: na Organization: Sybase, Inc. Lines: 29 In article <1990Dec11.041717.18604@hoss.unl.edu> sanjiv@hoss.unl.edu (Sanjiv K. Bhatia) writes: >In article <1990Dec11.011804.14702@pa.dec.com> reader@wsl.dec.com (News Reader) writes: >> >>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. > >Here it is: > > :%!tr "[A-Z]" "[a-z]" > Having had considerable trouble with "tr" and its various implementations, my favorite is the more portable: :%!dd conv=ucase Haven't been able to get rid of the 2 diagnostic lines... ----------------------------------------------------------------- Timothy A. Meazell | |\/\/\/\/| timm@sybase.com | | | (415) 596-3590 | | | | | (e) (e) | | _) | (c ,_____\ | | (__( Like, don't have a cow, man!! | | / | /____\