Is There an echo in Here?
The echo command displays a message on the screen and is primarily useful for programmers writing shell scripts (see "Linux Programming"). But anyone can use echo to show the value of environment variables. The echo command displays a message on the screen and is primarily useful for programmers writing shell scripts (see "Linux Programming"). But anyone can use echo to show the value of environment variables. Here are some examples:
echo $PATH
/usr/bin:/usr/local/bin
echo My name is $USER - Home directory=$HOME.
My name is hermie - Home directory=/home/hermie.
The echo command is very similar to the DOS command of the same name, except that the DOS echo command cannot display environment variables--it just displays a message.
Previous Lesson: Date and Time
Next Lesson: Spell Checking
Comments (most recent first)
Gopi (04 Jul 2010, 23:21)
details about asp.net with sql database and its screen shots
neethu (03 Mar 2010, 23:29)
how to blink a text using echo.I tried
echo -e "\033[5m hii" bt didnt worked |
|
|
![]() |
|
| <Send This Link to a Friend> <Bookmark This Page> | ||