Skip to main content
added 216 characters in body
Source Link
guile
  • 61
  • 3

By using the tail command in that way:

# tail -n +<lines to skip> filename 

for example:

tail -n +1000 hugefile.txt > hugefile-wo-the-first-1000-lines.txt 

And that's all.- For more information: https://es.wikipedia.org/wiki/Tail

BTW: Don't be fooled if someone tell you this is exactly the opposite what you want to do, I've tested it:

$ tail -n +3 /tmp/test 3 4 5 $ cat /tmp/test 1 2 3 4 5 

By using the tail command in that way:

# tail -n +<lines to skip> filename 

for example:

tail -n +1000 hugefile.txt > hugefile-wo-the-first-1000-lines.txt 

And that's all.- For more information: https://es.wikipedia.org/wiki/Tail

By using the tail command in that way:

# tail -n +<lines to skip> filename 

for example:

tail -n +1000 hugefile.txt > hugefile-wo-the-first-1000-lines.txt 

And that's all.- For more information: https://es.wikipedia.org/wiki/Tail

BTW: Don't be fooled if someone tell you this is exactly the opposite what you want to do, I've tested it:

$ tail -n +3 /tmp/test 3 4 5 $ cat /tmp/test 1 2 3 4 5 
Source Link
guile
  • 61
  • 3

By using the tail command in that way:

# tail -n +<lines to skip> filename 

for example:

tail -n +1000 hugefile.txt > hugefile-wo-the-first-1000-lines.txt 

And that's all.- For more information: https://es.wikipedia.org/wiki/Tail