TRIM
TRIM
TRIM [ /B ] [ /C=abcde ] [ /L ] [ /T ] [ /V ] /- string(s)
The TRIM
command removes characters from the beginning and end of one or more strings.
For each supplied string, the TRIM
command will remove all leading (option "/L") and/or trailing ("/T") occurrences of any white space character (option "/B") and/or of any character supplied as an argument to the "/C" option.
The command returns the trimmed strings or, if more than one string is supplied, a blank-separated list of trimmed strings.
If option "/V" is supplied, the arguments are considered o be the names of variables. In this case, the contents of the variables are trimmed.
Examples:
#a := trim /l /b /- ' string '
will remove all leading white space characters
#a := trim /b /l /c=abc 'aaastringccc'
will remove all leading and trailing occurrences of the characters "a", "b", and "c".