# Input Case

> [HTML Version](inputcase.htm)

_Reviewed and reorganized June 2020_

The DO file processor supports the ability to specify the upper or lower case version of a \$KBDn variable on the command line, which can be handy when building case-sensitive Unix commands from input strings. The following example makes this clear:

;TEST.CMD

:<Input something >

:K1

DOTEST \$KBD1 LCS(\$KBD1) UCS(\$KBD1)



;DOTEST.DO

:<Command line: \$0 \$1 \$2   

\>



Assuming that the user had input "SiLly" in response to the prompt in test.cmd, the output of the DOTEST command would be:

Command line: SiLly silly SILLY

Note that these two functions , LCS(\$KBDn) and UCS(\$KBDn), are the only ones supported on the DO command line.