51af6dc050
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@122 a672b425-5310-4d7a-af5c-997e18724b81
37 lines
956 B
HTML
37 lines
956 B
HTML
---
|
|
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>
|