Trim, Version 1.00 Trim leading and trailing whitespace (including linefeeds) from string Usage: TRIM textfile or: TRIM text or: some_program | TRIM Where: textfile file containing text to be trimmed text string to be trimmed some_program program whose output is to be trimmed Note: Exit code ("errorlevel") -1 in case of errors, otherwise 0. Written by Rob van der Woude https://www.robvanderwoude.com