Pregunta

I have a program that displays many line in the output

How I can make it display the all output except the first 2 lines?

¿Fue útil?

Solución

easily using tail command:

tail -n+3

Otros consejos

You could use awk

awk 'NR>2' file

In order to complete the triplet,

sed '1,2d' file
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top