Skip to content

hingston/split

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Split Files

Split large file into a number of smaller files with a given number of lines.

Usage

$ python split.py [-h] [-s SUFFIX] [-e ENCODING] n path file

positional arguments:
  n                     max number of lines per file
  path                  path of file
  file                  name of file to split
optional arguments:
  -h, --help            show this help message and exit
  -s SUFFIX, --suffix SUFFIX
                        suffix, default='part'
  -e ENCODING, --encoding ENCODING
                        encoding, default='utf8'

About

Split files by number of lines with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages