Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Syntax

upper variable_name

Description

The upper command forces all alphabetic characters in a specified variable or list element (variable_name) to upper case.

Parameters

Parameter

Description

variable_name

Variable or list element in which to force alphabetic characters to upper case.

Example

The following example assumes that a variable, myvar, exists with a beginning value of abcXYZ:


set myvar=abcXYZ
upper myvar
echo $(myvar)


The output would be:


ABCXYZ

  • No labels