Uppercase a Bash input variable

Parker, Ron rdparker at butlermfg.com
Wed Apr 2 18:25:50 CST 2003


> -----Original Message-----
> From: James Sissel [mailto:James.Sissel at labone.com]

> echo -n "Please enter a date (DD-MON-YYYY): "
> read indate

> How can I make sure indate is in uppercase?

I'm sure there is a better answer, but something like
	indate="`echo $indate|tr [a-z] [A-Z]`"
should work




More information about the Kclug mailing list