Delimiters in a shell script

Delimiter characters are used to separate a character string into the individual parts that form a command.

In Db2® Db2 Intelligence Center, semi-colon (;) is used as the standard delimiter to separate multiple commands in a shell script. For example:
ls;
pwd;
ls; pwd;
You can also use the delimiter (;) within the script itself as shown in the following example:
echo ';';
pwd; 

However, you cannot set any other character as a delimiter and use it as a separator in a shell script.

The delimiter ';'' can also be considered as a new line character which means, you need not specify the ';' at the end of a command. For example ls;. Instead, you can specify the command as lspwd

However, you cannot specify the command as ls pwd, because ls pwd is an invalid command in a shell script.

The new line character acts as a parallel for the delimiter break. For example,

In Windows, a new line is specified by using \r\n. It is called a Carriage Return and Line Feed or CRLF. For example,
Database  : kittytest              
Run method: Shell script           
Date      : Aug 30, 2022 5:06:59 PM
Status    : Success                



=======================================================================================
lspwd


~
11.sh
1.txt
4Test
applications.sh
/home/db2inst1
Database  : sampleOnWindows        
Run method: Shell script           
Date      : Aug 30, 2022 5:03:32 PM
Status    : Success                



=======================================================================================
lspwd


C:UsersAdministratorDesktop
/home/Administrator