Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: Converting to uppercase/lowercase in sed Message-ID: <7331@star.cs.vu.nl> Date: 17 Aug 90 13:09:08 GMT References: <3766@umbc3.UMBC.EDU> <1990Aug16.232151.23436@iwarp.intel.com> Sender: news@cs.vu.nl Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Dept. of Computer Science, Amsterdam, The Netherlands Lines: 23 In article <1990Aug16.232151.23436@iwarp.intel.com>, merlyn@iwarp.intel.com (Randal Schwartz) writes: )In article <3766@umbc3.UMBC.EDU>, rostamia@umbc5 writes: )| Is there a way to convert characters to uppercase or to lowercase in sed? )| In EX the command )| s/asdf/\U&/ )| changes the string asdf to ASDF, but ed and sed do not seem to be as )| sophisticated as ex :-( )| )| Any ideas? ) )yeah, the not very well documented "y" command. ) ) y/a-z/A-Z/ Doesn't work on SunOS 4.0.3c and a whole lotta other UNIX versions. :-( y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ POSIX had better fix this... -- "UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." (Doug Gwyn)