What Does The Echo Command Do?
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 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.
Comments - most recent first
(Please feel free to answer questions posted by others!)
have u any tutorial about it ??? plzzz send me on my email
echo * <-- list files and dir names (unformatted)
echo /* <-- idem root directory
echo */ <-- idem only subdir names
echo ../* <-- idem parent directory
echo $x <-- list file an dir names
echo "$x" <-- prints *
x='/* this is a comment */'
what happen when:
I get erratic output
/* this is a comment */
But anothers is:
[list of root directory file names] this is a comment [list of subdirs]
And a problem when:
sed -n /$x/p file
please help me,Thankes
The first paragraph (/linux-echo-command.html) contained redundant information in form of ...repetitions!
Can u help me????
I utilized ..it worked
C:\>echo windir = %windir%
windir = C:\WINDOWS
echo -e "\033[5m hii"
bt didnt worked
NO SPAM! If you post garbage, it will be deleted, and you will be banned.
Copyright © by -
All rights reserved - Redistribution is allowed only with permission.