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:
parent
cddb59c190
commit
62f06e5131
|
@ -14,9 +14,9 @@ title: Script Base Commands
|
||||||
It could be used with variables, like in the following example:<br>
|
It could be used with variables, like in the following example:<br>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ example:"this is an example"
|
example:"this is an example"
|
||||||
<br>
|
<br>
|
||||||
$ <b>echo</b> $example<br>
|
<b>echo</b> $example<br>
|
||||||
this is an example
|
this is an example
|
||||||
</pre>
|
</pre>
|
||||||
<br>
|
<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>
|
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>
|
So, our command example will look like this:<br>
|
||||||
<pre>
|
<pre>
|
||||||
$ pages Hello
|
pages Hello
|
||||||
$ <b>cat</b> Hello<br>
|
<b>cat</b> Hello<br>
|
||||||
Hello World
|
Hello World
|
||||||
</pre>
|
</pre>
|
||||||
<br>
|
<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>
|
If we want to select only the animals whose name begins with the letter "d", we will write this:<br>
|
||||||
<pre>
|
<pre>
|
||||||
$ grep d animals<br>
|
grep d animals<br>
|
||||||
Deer<br>
|
Deer<br>
|
||||||
Dog<br>
|
Dog<br>
|
||||||
Dolphin<br>
|
Dolphin<br>
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
layout: page
|
layout: page
|
||||||
category-page: scripts
|
category-page: scripts
|
||||||
category-title: Scripting
|
category-title: Scripting
|
||||||
tags: reditect output input
|
tags: redirect output input
|
||||||
author: Dario Rasic
|
author: Dario Rasic
|
||||||
title: Redirection
|
title: Redirection
|
||||||
---
|
---
|
||||||
|
<br>
|
||||||
|
<!-- Output redirection text -->
|
||||||
<h2>Output as input</h2>
|
<h2>Output as input</h2>
|
||||||
|
|
||||||
<p>To redirect a certain output of the command-line we have to use the symbol ">".<br>
|
<p>To redirect a certain output of the command-line we have to use the symbol ">".<br>
|
||||||
|
@ -36,6 +37,7 @@ Sun
|
||||||
Moon
|
Moon
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
<!-- Input redirection text -->
|
||||||
<h2>Input as output</h2>
|
<h2>Input as output</h2>
|
||||||
|
|
||||||
To redirect an input from a file for a command, the symbol "<" is used.
|
To redirect an input from a file for a command, the symbol "<" is used.
|
||||||
|
@ -48,8 +50,11 @@ Moon
|
||||||
|
|
||||||
This is particularly useful when chaining commands.
|
This is particularly useful when chaining commands.
|
||||||
|
|
||||||
<h2>Chaining</h2>
|
<br>
|
||||||
|
|
||||||
|
<!-- Chaining command text -->
|
||||||
|
<h2>Chaining</h2>
|
||||||
|
<br>
|
||||||
<h1>To be completed</h1>
|
<h1>To be completed</h1>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user