Echo (command) - Usage Example

Usage Example

$ echo This is a test. This is a test. $ echo "This is a test." > ./test.txt $ < ./test.txt This is a test.

Some variants of Unix support options such as -n and -e. These are not standard due to historical incompatibilities between BSD and System V; the printf command can be used in situations where this is a problem.


Using ANSI escape code SGR sequences, compatible terminals can print out colored text:

FGRED=`echo "\033[31m"` FGCYAN=`echo "\033[36m"` BGRED=`echo "\033[41m"` FGBLUE=`echo "\033[35m"` BGGREEN=`echo "\033[42m"` NORMAL=`echo "\033[m"` and after : echo "${FGBLUE} Text in blue ${NORMAL}" echo "Text normal" echo "${BGRED} Background in red" echo "${BGGREEN} Background in Green and back to Normal ${NORMAL}"

Read more about this topic:  Echo (command)

Famous quotes containing the word usage:

    Girls who put out are tramps. Girls who don’t are ladies. This is, however, a rather archaic usage of the word. Should one of you boys happen upon a girl who doesn’t put out, do not jump to the conclusion that you have found a lady. What you have probably found is a lesbian.
    Fran Lebowitz (b. 1951)

    I am using it [the word ‘perceive’] here in such a way that to say of an object that it is perceived does not entail saying that it exists in any sense at all. And this is a perfectly correct and familiar usage of the word.
    —A.J. (Alfred Jules)