theshell.ch/site/pages/cmd/advanced/echo.html

38 lines
956 B
HTML
Raw Normal View History

---
layout: page
author: Alessandro Luini
category-page: advanced
category-title: Advanced commands
tags: echo calculator print
title: echo
---
<p> In computing, echo is a command in Unix operating systems that outputs the
strings it is being passed as arguments. <br>
It is a command typically used in
shell scripts and batch files to output status text to the screen or a
computer file, or as a source part of a pipeline.</p>
<br>
<h3>How to use</h3>
<p> To use this simple command just type "echo" with the topic we want to
print. The computer will return your argument as a string, for example,
<pre><code> echo hello world</pre></code>
will return hello world.
</p>
<br>
<h3>Skills</h3>
<br>
<ul>
<li><h4>bc:</h4> It permits you to make arithmetic calculation
through the terminal using this format:
<pre><code> echo 12+4 | bc</code></pre>
will return 16.</li>