Skip to main content
deleted 1 character in body
Source Link
slm
  • 379.7k
  • 127
  • 793
  • 897

I think that 'split'split is you best approach.

Try using the '-l xxxx'-l xxxx option, where xxxx is the number of lines you want in each file (default is 1000).

You can use the '-n yy'-n yy option if you are more concerned about the amount of files created. Use '-n 2'-n 2 will split your file in only 2 parts, no matter the amount of lines in each file.

You can count the amount of lines in your file with 'wc -l filename' wc -l filename. This is the 'wordcount' command with the lines option.

Source: man split

References

Source: man wc

  • man split
  • man wc

I think that 'split' is you best approach.

Try using the '-l xxxx' option, where xxxx is the number of lines you want in each file (default is 1000).

You can use the '-n yy' option if you are more concerned about the amount of files created. Use '-n 2' will split your file in only 2 parts, no matter the amount of lines in each file.

You can count the amount of lines in your file with 'wc -l filename' . This is the 'wordcount' command with the lines option.

Source: man split

Source: man wc

I think that split is you best approach.

Try using the -l xxxx option, where xxxx is the number of lines you want in each file (default is 1000).

You can use the -n yy option if you are more concerned about the amount of files created. Use -n 2 will split your file in only 2 parts, no matter the amount of lines in each file.

You can count the amount of lines in your file with wc -l filename. This is the 'wordcount' command with the lines option.

References

  • man split
  • man wc
added 41 characters in body
Source Link

I think that 'split' is you best approach.

Try using the '-l xxxx' option, where xxxx is the number of lines you want in each file (default is 1000).

You can use the '-n yy' option if you are more concerned about the amount of files created. Use '-n 2' will split your file in only 2 parts, no matter the amount of lines in each file.

You can count the amount of lines in your file with 'wc -l filename' . This is the 'wordcount' command with the lines option.

Source: man split

Source: man wc

I think that 'split' is you best approach.

Try using the '-l xxxx' option, where xxxx is the number of lines you want in each file (default is 1000).

You can use the '-n yy' option if you are more concerned about the amount of files created. Use '-n 2' will split your file in only 2 parts, no matter the amount of lines in each file.

You can count the amount of lines in your file with 'wc -l filename' . This is the 'wordcount' command with the lines option.

I think that 'split' is you best approach.

Try using the '-l xxxx' option, where xxxx is the number of lines you want in each file (default is 1000).

You can use the '-n yy' option if you are more concerned about the amount of files created. Use '-n 2' will split your file in only 2 parts, no matter the amount of lines in each file.

You can count the amount of lines in your file with 'wc -l filename' . This is the 'wordcount' command with the lines option.

Source: man split

Source: man wc

Source Link

I think that 'split' is you best approach.

Try using the '-l xxxx' option, where xxxx is the number of lines you want in each file (default is 1000).

You can use the '-n yy' option if you are more concerned about the amount of files created. Use '-n 2' will split your file in only 2 parts, no matter the amount of lines in each file.

You can count the amount of lines in your file with 'wc -l filename' . This is the 'wordcount' command with the lines option.