From 62f06e51318f671a0c549a6a2943e39132957dde Mon Sep 17 00:00:00 2001 From: rasicd Date: Sun, 11 Nov 2018 12:33:39 +0000 Subject: [PATCH] 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 --- site/pages/scripts/base_commands.html | 10 +++++----- site/pages/scripts/redirection.html | 11 ++++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/site/pages/scripts/base_commands.html b/site/pages/scripts/base_commands.html index a60cb05..045123d 100644 --- a/site/pages/scripts/base_commands.html +++ b/site/pages/scripts/base_commands.html @@ -14,9 +14,9 @@ title: Script Base Commands It could be used with variables, like in the following example:
-$ example:"this is an example"
+example:"this is an example"
 
-$ echo $example
+echo $example
this is an example

@@ -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".
So, our command example will look like this:
-$ pages Hello
-$ cat Hello
+pages Hello +cat Hello
Hello World

@@ -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:
-$ grep d animals
+ grep d animals
Deer
Dog
Dolphin
diff --git a/site/pages/scripts/redirection.html b/site/pages/scripts/redirection.html index b1d5f15..ce18724 100644 --- a/site/pages/scripts/redirection.html +++ b/site/pages/scripts/redirection.html @@ -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 --- - +
+

Output as input

To redirect a certain output of the command-line we have to use the symbol ">".
@@ -36,6 +37,7 @@ Sun Moon

+

Input as output

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. -

Chaining

+
+ +

Chaining

+

To be completed