문제

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?

도움이 되었습니까?

해결책

easily using tail command:

tail -n+3

다른 팁

You could use awk

awk 'NR>2' file

In order to complete the triplet,

sed '1,2d' file
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top