Команда echo

Echo's to the screen what you type after echo. Echo is useful for producing diagnostics in command files, for sending known data into a pipe, and for displaying the contents of environment variables.

Синтаксис

echo [-n] text

-nOn BSD and some variants derived from BSD does not begin a new line after the echoed text.
textThe text that you want to echo to the screen.

Примеры

echo Hello world  

The above example would return "Hello world" to the console

echo * | wc

The above example would list a count of all the files and directories in the current directory. Additional examples relating to this example can also be found on document CH000756.

Обратно к списку команд