theshell.ch/site/pages/cmd/advanced/echo.html
luinia 5228e6c2da advanced: echo
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@119 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-12 08:31:52 +00:00

38 lines
1003 B
HTML

---
layout: page
author: Alessandro Luini
category-page: advanced
category-title: Advanced commands
tags: echo calculator print
title: echo
---
<h1>
<i> echo: </i> Printing strings command
</h1>
<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>
<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>
<h3>Skills</h3>
<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>