2018-11-12 08:31:52 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
author: Alessandro Luini
|
|
|
|
category-page: advanced
|
|
|
|
category-title: Advanced commands
|
|
|
|
tags: echo calculator print
|
|
|
|
title: echo
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-11-12 08:42:42 +00:00
|
|
|
|
2018-11-12 08:31:52 +00:00
|
|
|
|
|
|
|
<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>
|
2018-11-12 08:42:42 +00:00
|
|
|
<br>
|
2018-11-12 08:31:52 +00:00
|
|
|
<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>
|
|
|
|
|
2018-11-12 08:42:42 +00:00
|
|
|
<br>
|
2018-11-12 08:31:52 +00:00
|
|
|
|
|
|
|
<h3>Skills</h3>
|
2018-11-12 08:42:42 +00:00
|
|
|
<br>
|
2018-11-12 08:31:52 +00:00
|
|
|
<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>
|