-2

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?

MOHAMED
  • 41,599
  • 58
  • 163
  • 268

3 Answers3

3

easily using tail command:

tail -n+3
devnull
  • 118,548
  • 33
  • 236
  • 227
Farvardin
  • 5,336
  • 5
  • 33
  • 54
2

You could use awk

awk 'NR>2' file
Jotne
  • 40,548
  • 12
  • 51
  • 55
2

In order to complete the triplet,

sed '1,2d' file
tripleee
  • 175,061
  • 34
  • 275
  • 318