modified layout of the html code, both redirecting and commands

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@97 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
rasicd 2018-11-11 12:33:39 +00:00
parent cddb59c190
commit 62f06e5131
2 changed files with 13 additions and 8 deletions

View File

@ -14,9 +14,9 @@ title: Script Base Commands
It could be used with variables, like in the following example:<br>
<pre>
$ example:"this is an example"
example:"this is an example"
<br>
$ <b>echo</b> $example<br>
<b>echo</b> $example<br>
this is an example
</pre>
<br>
@ -30,8 +30,8 @@ This command prints the content of a certain file as an output on the command-li
As example, we could imagine a simple text file in pages named "Hello", which contains the line "Hello World".<br>
So, our command example will look like this:<br>
<pre>
$ pages Hello
$ <b>cat</b> Hello<br>
pages Hello
<b>cat</b> Hello<br>
Hello World
</pre>
<br>
@ -45,7 +45,7 @@ This one behaves very similarly to the previus one, but in this case it prints o
If we want to select only the animals whose name begins with the letter "d", we will write this:<br>
<pre>
$ grep d animals<br>
grep d animals<br>
Deer<br>
Dog<br>
Dolphin<br>

View File

@ -2,11 +2,12 @@
layout: page
category-page: scripts
category-title: Scripting
tags: reditect output input
tags: redirect output input
author: Dario Rasic
title: Redirection
---
<br>
<!-- Output redirection text -->
<h2>Output as input</h2>
<p>To redirect a certain output of the command-line we have to use the symbol "&gt;".<br>
@ -36,6 +37,7 @@ Sun
Moon
</pre>
<!-- Input redirection text -->
<h2>Input as output</h2>
To redirect an input from a file for a command, the symbol "&lt;" is used.
@ -48,8 +50,11 @@ Moon
This is particularly useful when chaining commands.
<h2>Chaining</h2>
<br>
<!-- Chaining command text -->
<h2>Chaining</h2>
<br>
<h1>To be completed</h1>
</p>