-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
  • 38,769
  • 51
  • 148
  • 252

3 Answers3

3

easily using tail command:

tail -n+3
devnull
  • 111,086
  • 29
  • 224
  • 214
Taher Khorshidi
  • 5,168
  • 5
  • 31
  • 53
2

You could use awk

awk 'NR>2' file
Jotne
  • 39,326
  • 11
  • 49
  • 54
2

In order to complete the triplet,

sed '1,2d' file
tripleee
  • 158,107
  • 27
  • 234
  • 292