Head

Head of a Text File #1

In this challenge, we practice using the head command to display the first lines of a text file.

Display the first 20 lines of an input file.

head -n 20

Head of a Text File #2

In this challenge, we practice using the head command to display the first n characters of a text file.

Display the first 20 characters of an input file.

head -c 20

Last updated