Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!know!pluto.hemel.bull.co.uk!ewoods From: ewoods@hemel.bull.co.uk (Eoin Woods) Newsgroups: comp.unix.questions Subject: Re: Convert 'a' to 'A' in a Shell-Script Message-ID: <1991Jan30.172952.21400@hemel.bull.co.uk> Date: 30 Jan 91 17:29:52 GMT References: <888@kivax.UUCP> Sender: @hemel.bull.co.uk Organization: Bull HN UK Lines: 25 Nntp-Posting-Host: brno koe@kivax.UUCP (Diana Koehler) writes: >How can I convert "lowercase" characters in "uppercase" characters >in a Shell-Script. >f.e. convert all 'a' to 'A' ? >(awk, sed ??) Try tr(1), for example : abc='Hello' def=`echo $abc | tr [a-z][A-Z]` echo $def Will produce : HELLO Eoin. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Eoin Woods, Software Development Group, Bull HN Information Systems, ~ ~ Maxted Road, Hemel Hempstead, Herts HP2 7DZ, UK. ~ ~ Tel : +44 442 232222 x4823 Fax : +44 442 234084 ~ ~ < Eoin.Woods@hemel.bull.co.uk or ...!uunet!ukc!brno!ewoods> ~ ~ < When do we start news group comp.os.emacs ? :-) > ~