Path: utzoo!attcan!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!d75!panda!eli From: eli@panda.uucp (Eli Taub/100000) Newsgroups: comp.unix.questions Subject: Re: Selective translation Summary: echo 'g/^[ ]*\<[^ ]*\>/s//\L&/' | ex - foo Keywords: vi,ex Message-ID: <3252@d75.UUCP> Date: 11 Jul 90 19:50:15 GMT References: <1553@dfsun1.electro.swri.edu> Sender: news@d75.UUCP Reply-To: eli@reed.UUCP (Eli Taub/100000) Organization: IBM AWD, Austin, TX Lines: 22 In article <1553@dfsun1.electro.swri.edu> jackson@dfsun1.electro.swri.edu (Keith Jackson) writes: >I was trying to filter a file by making the first word lowercase and >leaving the rest as is. > > Stuff deleted .... > >== jackson@dfsun1.electro.swri.edu ## UN*X - live free or die ## >Disclaimer: All views represented here are made by a person who doesn't plan ah Try ex as a filter (weird !): echo 'g/^[ ]*\<[^ ]*\>/s//\L&/' | ex - foo * The `[ ]' is typed: `[' `SPACE' `TAB' `]' If the lines don't start with space or tab it could be much simpler. _ |___ Eli Taub | | \ | (512) 838-4810 | /\/ Contractor at (AWD) IBM | I express my opinions not IBM's. / | \