From 01145fd37d45e6312b87e638142a857b1153673e Mon Sep 17 00:00:00 2001 From: bevilj Date: Sun, 18 Nov 2018 15:30:51 +0000 Subject: [PATCH] advanced: code review for new pages git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@248 a672b425-5310-4d7a-af5c-997e18724b81 --- site/pages/cmd/advanced/head-tail.html | 67 +++++++++++--------------- site/pages/cmd/advanced/paste.html | 35 ++++++++++++++ 2 files changed, 64 insertions(+), 38 deletions(-) create mode 100644 site/pages/cmd/advanced/paste.html diff --git a/site/pages/cmd/advanced/head-tail.html b/site/pages/cmd/advanced/head-tail.html index f48b905..3b5af87 100644 --- a/site/pages/cmd/advanced/head-tail.html +++ b/site/pages/cmd/advanced/head-tail.html @@ -4,48 +4,39 @@ author: Agostino Monti category-page: advanced category-title: Advanced commands tags: head tail text file -title: head-tail +title: head and tail --- -
-
-

head

-

The head command reads the first few lines of any text given to it as an input - and writes them to standard output. - If more than one input file is provided, head will return the first ten lines - from each file, precede each set of lines by the name of the file and separate - each set of lines by one vertical space.

-
+The head command reads the first few lines of any text given to it as an input +and writes them to standard output.
+If more than one input file is provided, head will return the first ten lines +from each file, precede each set of lines by the name of the file and separate +each set of lines by one vertical space. -

tail

-

The tail command is similar to the head command - except that it reads the final lines in files rather than the first lines.

+
+head [flags] [file1] [file2] ...
+
-

Examples

-

-      head file1.txt 
- head file1.txt file2.txt
- tail fail1.txt

+The tail command is similar to the head command +except that it reads the final lines in files rather than the first lines. +
+tail [flags] [file1] [file2] ...
+
-

flags

- + diff --git a/site/pages/cmd/advanced/paste.html b/site/pages/cmd/advanced/paste.html new file mode 100644 index 0000000..45b9aa1 --- /dev/null +++ b/site/pages/cmd/advanced/paste.html @@ -0,0 +1,35 @@ +--- +layout: page +author: Agostino Monti +category-page: advanced +category-title: Advanced commands +tags: filie coluns analize +title: paste +--- + +The paste command is used to join files horizontally +(parallel merging) by outputting lines consisting of the sequentially corresponding +lines of each file specified, separated by tabs, to the standard output.
+Once involved, paste will read all its file arguments. For each corresponding line, +paste will append the contents of each file at that line to its output along with a tab. +When it has completed its operation for the last file, paste will output a newline +character and move on to the next line. + +
+paste [flags] [file1] [file2] ...
+
+ +

Flags

+ +