Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gluonfield/splitcsv
A CLI application that splits a CSV file into multiple files, each containing a header row and a specified number of data rows.
https://github.com/gluonfield/splitcsv
Last synced: 4 days ago
JSON representation
A CLI application that splits a CSV file into multiple files, each containing a header row and a specified number of data rows.
- Host: GitHub
- URL: https://github.com/gluonfield/splitcsv
- Owner: gluonfield
- Created: 2024-07-21T12:10:08.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-21T12:36:12.000Z (6 months ago)
- Last Synced: 2025-01-01T10:38:39.099Z (6 days ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SplitCSV
A CLI application that splits a CSV file into multiple files, each containing a header row and a specified number of data rows.
```sh
Usage:
splitcsv [flags]Flags:
-f, --file string Path to the CSV file (required)
-h, --help help for splitcsv
-r, --rows int Number of rows per output file (required) (default 10)
-s, --suffix string Suffix prepended to the output file name
-t, --trims3 Trim the s3 paths like s3://file to /file```
## Install
### MacOS
```sh
brew tap augustdev/splitcsv
brew install splitcsv
```### Linux/Windows
Check the Download and Build sections.
## Download
You can download precompiled binary in [Releases](https://github.com/AugustDev/splitcsv/releases/latest).
## Build
You should have Go installed.
```sh
make build-all
```which will build binaries in `./bin` directory.
## Example usage
```sh
splitcsv --file file.csv --rows 4 --suffix float --trims3
splitcsv -f file.csv -r 3
```