From 9c15eba4cfbaba2ee635cdce7a618a51bf3a99a1 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Thu, 26 Sep 2024 04:58:39 +0300 Subject: [PATCH] Clarify actions of head and tail --- episodes/04-pipefilter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/episodes/04-pipefilter.md b/episodes/04-pipefilter.md index 5318bb6e7..d3bf4d6a6 100644 --- a/episodes/04-pipefilter.md +++ b/episodes/04-pipefilter.md @@ -746,8 +746,8 @@ and *only* the processed data files? - `wc` counts lines, words, and characters in its inputs. - `cat` displays the contents of its inputs. - `sort` sorts its inputs. -- `head` displays the first 10 lines of its input. -- `tail` displays the last 10 lines of its input. +- `head` displays the first 10 lines of its input by default without additional arguments. +- `tail` displays the last 10 lines of its input by default without additional arguments. - `command > [file]` redirects a command's output to a file (overwriting any existing content). - `command >> [file]` appends a command's output to a file. - `[first] | [second]` is a pipeline: the output of the first command is used as the input to the second.