Path: utzoo!utgpu!news-server.csri.toronto.edu!ecf!me!sun Newsgroups: comp.unix.questions From: sun@me.utoronto.ca (Andy Sun Anu-guest) Subject: Re: Convert 'a' to 'A' in a Shell-Script Message-ID: <91Feb3.030328est.18739@me.utoronto.ca> Organization: U of Toronto, Dept. of Mechanical Engineering References: <888@kivax.UUCP> Date: 3 Feb 91 08:03:36 GMT 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 ??) >Thanks in advance >Diana >------------------------------------------------------------------------ >Diana Koehler Tel.: +49 7721 867034 >Kienzle Computersysteme >Abt. 011.2 e-mail: koe@kivax.UUCP >Postfach 1640 ..!mcsun!unido!kivax!koe >D-7730 VS-Villingen ..!uunet!unido!kivax!koe I know you'll probably get lots of replies from people because the above is a trivial one. There is a command called "tr" (for translate, I think it is a SysV command) that does translations. Typing tr A-Z a-z filename will convert all upper cases to lower cases in file filename. Andy