[lug] simple bash Q.

Peter Hutnick peter at fpcc.net
Fri Mar 8 20:16:12 MST 2002


On Saturday 09 March 2002 03:03 pm, D. Stimits wrote:
> I know there is a simple way in bash scripts to convert a string to all
> uppercase or all lowercase, but I can't seem to find the script version
> (I see key bindings listed for interactive bash sessions). What would
> the "toupper" and "tolower" be if I have a variable:
> myvar="TeStMe"

I don't know if bash has some cool-guy built in way to do this, but I would 
just use seds transliterate feature.



More information about the LUG mailing list