Computer Science, asked by ghodkep166, 9 hours ago

display first and last 5 lines of student.txt​

Answers

Answered by abhishekdalal0013
0

Answer:

In this example, lines is an optional value specifying the number of lines to be read. If you don't give a number, the default value of 10 is used. Also, filename represents the name of an optional file for the head command to read. Otherwise, it will take its input from stdin (standard input: the terminal, or whatever the shell feeds the process with, usually pipe output).

For example, given a file containing the English alphabet with each letter on a separate line, a user enters the command:

Similar questions