Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

trimspace in bact file

@echo off 
set str = This string    has    a  lot  of spaces 
echo %str% 

set str=%str:=% 
echo %str%
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #trimspace #bact #file
ADD COMMENT
Topic
Name
5+5 =