Friday, 2 August 2019

Echo Command

 this command is a built in command in bash and C shell. It is used to display the content on the screen.
$ echo “hai good morning”
Hai good morning
Using echo command you can also displays the value of a variable.
$ x = 10
$ echo the value of x is $x
The value of x is 10
$
-e : enables the escape sequence characters
\b : eliminates the back space
\n : prints in new line
\t : gives the tab space
\v : vertical tab space
\c : suppress trailing new line with backspace.
-n : suppress trailing new line with backspace.
\a : alert return with backspace.

0 comments:

Post a Comment