From 0dbd4778df687516be47f5239be78e64153f99f7 Mon Sep 17 00:00:00 2001 From: montiag Date: Sun, 18 Nov 2018 12:28:06 +0000 Subject: [PATCH] advanced:paste-cat git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@247 a672b425-5310-4d7a-af5c-997e18724b81 --- site/pages/cmd/advanced/head-tail.html | 51 ++++++++++++++++++++++ site/pages/cmd/advanced/paste-cat.html | 58 ++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 site/pages/cmd/advanced/head-tail.html create mode 100644 site/pages/cmd/advanced/paste-cat.html diff --git a/site/pages/cmd/advanced/head-tail.html b/site/pages/cmd/advanced/head-tail.html new file mode 100644 index 0000000..f48b905 --- /dev/null +++ b/site/pages/cmd/advanced/head-tail.html @@ -0,0 +1,51 @@ +--- +layout: page +author: Agostino Monti +category-page: advanced +category-title: Advanced commands +tags: head tail text file +title: head-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.

+
+ +

tail

+

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

+ +

Examples

+

+      head file1.txt 
+ head file1.txt file2.txt
+ tail fail1.txt

+ + +

flags

+ diff --git a/site/pages/cmd/advanced/paste-cat.html b/site/pages/cmd/advanced/paste-cat.html new file mode 100644 index 0000000..a18f110 --- /dev/null +++ b/site/pages/cmd/advanced/paste-cat.html @@ -0,0 +1,58 @@ +--- +layout: page +author: Agostino Monti +category-page: advanced +category-title: Advanced commands +tags: filie coluns analize +title: paste +--- + +
+
+

paste is a Unix command line utility which 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.

+ +

cat

+

cat is a standard Unix utility that reads files sequentially, writing them to standard output. + The name is derived from its function to concatenate files.

+ +

Examples

+

+    paste file1.txt file2.txt 
+ cat fail1.txt fail2.txt

+ +

flags

+