From e557c263777191d9da7efbf678fbfde4ddd245ad Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Mon, 2 Sep 2013 16:08:09 +0200 Subject: [PATCH 1/3] Create head --- cheatsheets/head | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cheatsheets/head diff --git a/cheatsheets/head b/cheatsheets/head new file mode 100644 index 0000000..5380daa --- /dev/null +++ b/cheatsheets/head @@ -0,0 +1,8 @@ +# To show the 10 first line of file +head file + +# To show the n first line of file +head -l n file + +# To show the n first bytes of file +head -b n file From fda6125657e5cc0b97f340f923b2447412aa222b Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Mon, 2 Sep 2013 16:09:38 +0200 Subject: [PATCH 2/3] minor spell corrections --- cheatsheets/head | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheatsheets/head b/cheatsheets/head index 5380daa..3bf5a48 100644 --- a/cheatsheets/head +++ b/cheatsheets/head @@ -1,7 +1,7 @@ -# To show the 10 first line of file +# To show the 10 first lines of file head file -# To show the n first line of file +# To show the n first lines of file head -l n file # To show the n first bytes of file From 0501f8cbfe68dd64d7c19a18a3581e7e111d5dec Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Sun, 15 Sep 2013 17:34:15 +0200 Subject: [PATCH 3/3] correction --- cheatsheets/head | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheatsheets/head b/cheatsheets/head index 3bf5a48..60f7f53 100644 --- a/cheatsheets/head +++ b/cheatsheets/head @@ -2,7 +2,7 @@ head file # To show the n first lines of file -head -l n file +head -n l file # To show the n first bytes of file -head -b n file +head -c b file