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.
head
command reads the first few lines of any text given to it as an input
+and writes them to standard output.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] ... +-
- head file1.txt+The
- head file1.txt file2.txt
- tail fail1.txt
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] ... +-
-n
option can be used followed by an integer indicating the number of lines desired.
- -n is a very tolerant option, it is not necessary for the integer to directly
- follow it without a space in between. In fact, the letter n does not
- even need to be used at all. Just the hyphen and the integer
- (with no intervening space) are sufficient to tell head how many lines to return.
- - head -n15 file1.txt
- head -n 15 file1.txt
- head -15 file1.txt
- ls | head
+head -n15 file1.txt+
+head -n 15 file1.txt
+head -15 file1.txt
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.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] ... ++ +
-d
delimiters, which specifies a list of delimiters to be used instead of tabs
+ for separating consecutive values on a single line. Each delimiter is used in turn;
+ when the list has been exhausted, paste begins again at the first delimiter.
++paste -d "|" file1.txt file2.txt +paste -d "|," file1.txt file2.txt+
-s
, which causes paste to append the data in serial rather than in parallel;
+ that is, in a horizontal rather than vertical fashion.
+