Text ProcessingLesson 23Free preview
Bash View Start (head)
This lesson is part of Bash · All levels
Summary
The head command displays the beginning of the file, default as the first 10 rows. The -n option sets the number of rows and the -c set the number of bytes. It's useful to check the structure of a large file quickly before further processing.
Key points
- The head file shows the first 10 lines
- n N displays N first line
- c N takes N byte first
- It's often used to check the header of a data file.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.