Skip to main content

Split big files - another one

Fast and easy if the linenumber is known:

  • line count (N): wc -l file_name
  • top of file (first K lines): head -n K file_name > top_file
  • bottom of file (L=N-K): tail -n L file_name > bottom_file

How to enable the linenumbers in vim

:set number