Skip to content

A CLI application that splits a CSV file into multiple files, each containing a header row and a specified number of data rows.

Notifications You must be signed in to change notification settings

gluonfield/splitcsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SplitCSV

A CLI application that splits a CSV file into multiple files, each containing a header row and a specified number of data rows.

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

brew tap augustdev/splitcsv
brew install splitcsv

Linux/Windows

Check the Download and Build sections.

Download

You can download precompiled binary in Releases.

Build

You should have Go installed.

make build-all

which will build binaries in ./bin directory.

Example usage

splitcsv --file file.csv --rows 4 --suffix float --trims3
splitcsv -f file.csv -r 3

About

A CLI application that splits a CSV file into multiple files, each containing a header row and a specified number of data rows.

Resources

Stars

Watchers

Forks

Packages

No packages published