MU - Upper case

Converts a string to upper case.

Syntax

MU{n}{/string{/p{-q}}}
or
MUm-k{/string{/p{-q}}}
or
MUm,n{/string{/p{-q}}}

Syntax Elements

n The number of lines to process, beginning with the current line. If n is omitted, defaults to the current line.

m -kSpecifies lines m through k.

m ,nSpecifies n lines, starting at line m.

/ A delimiter separating the syntax elements. It can be any nonnumeric character (except a blank, minus sign or hash) that does not appear in string.

Note that if a colon (:) is used as a delimiter, string is anchored to the starting column (see Column Dependent Matching).

string Specifies string to be converted. If omitted, the complete line is converted.

Note that only the first occurrence of string in each line is converted; to convert all occurrences of a string with a single command, use the R (Replace) command.

The caret character (^) can be used within the search string to match any single character (see Wildcard Character for more details).

p Specifies a starting column (see Column Dependent Matching).

q Specifies an ending column. If omitted, defaults to p. Ignored if less than p.

Example

:ED TEST IT1
Top
.L99
001 123xyz
002 aaaaaaa
003 xyz123
004 abababab
005 upper upper upper
006 12345
007 aa
EOI 007
.G3
003 xyz123
.MU2
003 XYZ123
004 ABABABAB
.F
Top
.L99
001 123xyz
002 aaaaaaa
003 XYZ123
004 ABABABAB
005 upper upper upper
006 12345
007 aa
EOI 007
.G5
005 upper upper upper
.MU/upper
005 UPPER upper upper




Contents of item IT1.







Go to line 3.

Convert 2 lines to upper case.


F command toggles buffers.


Changed item contents.







Go to line 5.

Convert first occurrence of "upper" to upper case.