echo command is one of the most commonly and widely used built-in command for linux bash and c shells,that typically used in scripting language and batch files to display a line of text/sring on standard output or a file.
The echo command are used following option to echo command in linux shell programming.
Sr.No |
Options |
Descriptions |
---|---|---|
01 |
-n |
do not print the trailing new line |
02 |
-e |
enable interpretation of backslash escapes |
03 |
\b |
Backspace |
04 |
\n |
New Line |
05 |
\t |
Horizontal Tab |
06 |
\v |
Vertical Tab |
07 |
\r |
Carriage Return |
the following all options example
echo "Virtualhax Inc."
echo with \n
echo "Virtualhax Inc."
echo \n "Veewom Technology"