Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Dec 1999 10:22:47 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Alex <al.feldman@sangoma.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Upper <->Lower in shell script
Message-ID:  <19991217102247.A43333@dan.emsphone.com>
In-Reply-To: <199912171619.IAA26603@www.geocrawler.com>; from "Alex" on Fri Dec 17 08:19:57 GMT 1999
References:  <199912171619.IAA26603@www.geocrawler.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 17), Alex said:
> I need in my shell script change upper case to lower case for
> characters. Cureently , I call c programm from script which do it. Is
> anybody did this inside script?

#!/bin/sh
var=MixedCase
lvar=`echo $var | tr A-Z a-z`
echo $lvar

#!/usr/local/bin/zsh
var=MixedCase
lvar=${var:l}
echo $lvar

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991217102247.A43333>