Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

dos assign carriage return to variable

set myLinefeed=^<LF1>
<LF2>
<LF3>
Comment

dos assign carriage return to variable

(SET LF=^
%=this line is empty=%
)
Comment

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"
)
Comment

dos assign carriage return to variable

setlocal EnableDelayedExpansion
set LF=^


rem TWO empty lines are required
echo This text!LF!uses two lines
Comment

dos assign carriage return to variable

set LF=^


rem TWO empty lines are required
echo This text^%LF%%LF%uses two lines
echo This also^

uses two lines
Comment

PREVIOUS NEXT
Code Example
Shell :: git find the commit that introduced a bug 
Shell :: git push --set-upstream origin master hangs 
Shell :: Show CSF version 
Shell :: c ide linux online 
Shell :: Enum install 
Shell :: registry key programfilesdir 
Shell :: how to install Klavaro 
Shell :: Remove noexec flag mounted device 
Shell :: create a tag locally 
Shell :: ubuntu 18.04 create folders in dock 
Shell :: bitbucket invalid slug 
Shell :: bash multiplication of arguments 
Shell :: how to check the difference between the staging area and commit 
Shell :: linux commands list 
Shell :: uses tasklist to gett pid in batch file 
Shell :: the folder cannot be copied because you do not have permissions to create it in the destination 
Shell :: install graphene federation 
Shell :: important linux command 
Shell :: linux how to run executable in background $ 
Shell :: loop over shell parameters 
Shell :: windows direct shortcut to programs and features 
Shell :: makefile shell if 
Shell :: get git output to terminal instead of less editor 
Shell :: git rename branch and force push 
Shell :: install vue-router for vue 2 
Shell :: restart debian server from ssh 
Shell :: GUI for mac home dir 
Shell :: mac finder quick preview for markdown 
Shell :: Install heroicons npm install @headlessui 
Shell :: cat to line number 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =