Bash head: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


<code>head</code> is used to print the first ten lines (by default) or a specified number of lines.
<code>head</code> is used to print the first ten lines (by default) or a specified number of lines.
<syntaxhighlight lang='bash'>
head -15 <file>
</syntaxhighlight>


=Usage=
=Usage=

Revision as of 22:53, 12 April 2020

Internal

Overview

head is used to print the first ten lines (by default) or a specified number of lines.

head -15 <file>

Usage

Extract a Specific Line from a File

Extract a Specific Line from a File