The shell performs substitution when it encounters an expression that contains one or more special characters. Example Here, the printing value of the variable is substituted by its value. Same time, "\n" is substituted by a new line − #!/bin/sh a = 10 echo - e "Value of a is $a \n" You will receive the following result. Here the -e option enables the interpretation of backslash escapes. Value of a is 10 Following is the result without -e option − Value of a is 10\n Here are following escape sequences which can be used in echo command − S.No. Escape & Description 1 \\ backslash 2 \a alert (BEL) 3 \b backspace 4 \c suppress trailing newline 5 \f form feed 6 \n new line 7 \r carriage return 8 \t horizontal tab 9 \v vertical tab You can use the -E option to disable the interpretation of the backslash escapes (default). You can use the -n option to disab...
PhD || Artificial Intelligence, Machine Learning, Soft Computing, Quantum Machine Learning, Data Sciences.