:unittest.lTrim :$created 20080227 :$changed 20080227 :$source https://www.dostips.com for %%C in ( "left trim nothing " " left trim one " " left trim plenty " ) do ( set "s=%%~C" call:lTrim s call:Format "[35] [35]." "'%%~C'" "'%%s%%'" ) EXIT /b
Script Output:
Script Output
---- :unittest.lTrim - output
'left trim nothing ' 'left trim nothing ' .
' left trim one ' 'left trim one ' .
' left trim plenty ' 'left trim plenty ' .
----