https://github.com/hingston/split
Split files by number of lines with Python
https://github.com/hingston/split
Last synced: 3 months ago
JSON representation
Split files by number of lines with Python
- Host: GitHub
- URL: https://github.com/hingston/split
- Owner: hingston
- License: mit
- Created: 2018-09-14T01:48:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-16T01:14:50.000Z (over 6 years ago)
- Last Synced: 2025-01-06T15:49:34.821Z (5 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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'
```