Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

dos assign carriage return to variable

if "!LF!" NEQ "!LF:~0,1!" echo Error "Linefeed definition is defect, probably multiple invisble whitespaces at the line end in the definition of LF"

FOR /F "delims=" %%n in ("!LF!") do (
  echo Error "Linefeed definition is defect, probably invisble whitespaces at the line end in the definition of LF"
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dos #assign #carriage #return #variable
ADD COMMENT
Topic
Name
8+2 =