Let us say numbers.txt contains the sequence of numbers from 1 to 10000, like this:
1
2
3
4
Each of the following 2 commands should output the following 4 lines. Complete the commands with correct values to make it happen!
4377
4378
4379
4380
head - numbers.txt | tail -
tail - numbers.txt | head -

Respuesta :

Answer:

Follows are the solution to this question:

Explanation:

head | tail -n 4380 in the numbers.txt

This will take first 4380 lines head -n 4380

tail -n 4 takes out the last 4 lines

tail -n + 4377.txt | head -n 4 -n

tail -n + 4377 requires all 4377 lines

head -n 4 cuts out first four lines

that's why the final answer is "4380, 4 5624,4".