RTrim
Turn the given value into a String and remove any trailing whitespace.
rtrim turns the given value into a String and removes any trailing whitespace characters before returning the result.
Usage
String.rtrim()
Or
rtrim(String)
Returns
String: The passed string with any trailing whitespace removed.
Example
set a = "Hello From ";
echo "$a DeployHub Pro";
echo "${a.rtrim()} DeployHub Pro";
Result:
Hello From DeployHub Pro
Hello From DeployHub Pro
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 18, 2024: Signed-off-by: tracyragan <[email protected]> (7195cf1)