diff --git a/site/pages/scripts/base_commands.html b/site/pages/scripts/base_commands.html
index 045123d..ac57ac8 100644
--- a/site/pages/scripts/base_commands.html
+++ b/site/pages/scripts/base_commands.html
@@ -6,10 +6,9 @@ tags: command base echo cat grep
author: Dario Rasic
title: Script Base Commands
---
-
+
-
This command print as output its entire argument on the command-line.
It could be used with variables, like in the following example:
@@ -23,7 +22,7 @@ this is an example
-
-
To redirect a certain output of the command-line we have to use the symbol ">".
+
cat hello.txt @@ -39,7 +40,7 @@ cat hello.txtInput as output
- +
To redirect an input from a file for a command, the symbol "<" is used.@@ -47,14 +48,34 @@ echo < $(cat hello.txt) Sun Moon- -This is particularly useful when chaining commands. - +This is particularly useful when chaining commands.
- -Chaining
+Chaining (or Piping)
-To be completed
+Chaining, also called Piping because it works with the pipe symbol "|", takes the output of a certain command-line and feeds it to another command in a direct way. + ++cat hello.txt | grep Mo +Moon ++ + +Simple Example
+
+Now let's say that we want to combine those commands in a more complex operation. Let's say we want to take some contents from a certain file and put it into another file.
+ +We want to sort the animals whose name begins with letter "d" from the file animals.txt and put it into d_animals.txt.
+ ++grep d < animals.txt > d_animals.txt ++
+cat d_animals.txt +Deer +Dog +Dolphin +... +