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 $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
(Please feel free to answer questions posted by others!)
have u any tutorial about it ??? plzzz send me on my email
mohitsaini1196@gmail.com
echo * <-- list files and dir names (unformatted)
echo /* <-- idem root directory
echo */ <-- idem only subdir names
echo ../* <-- idem parent directory
----
x=*
echo $x <-- list file an dir names
echo "$x" <-- prints *
---
x='/* this is a comment */'
what happen when:
echo $x
I get erratic output
Sometimes is:
/* 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????
Regards
echo 1111111111>>d/myfiles/mytextfile/data.txt
I utilized ..it worked
C:\>echo windir = %windir%
windir = C:\WINDOWS
C:\>
echo -e "\033[5m hii"
bt didnt worked
I welcome your comments. However... I am puzzled by many people who say "Please send me the Linux tutorial." This website *is* your Linux Tutorial! Read everything here, learn all you can, ask questions if you like. But
don't ask me to send what you already have. :-) 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.

