Giter Club home page Giter Club logo

rowsplit's Introduction

✂️ Rowsplit

A CSV file splitter

Usage

./rowsplit FILE {--rows ROWS | --files FILES} [--name NAME] [--ext EXT]
./rowsplit --help

Max rows per file

# Split original files into files of maximun 999 rows
./rowsplit ./my/huge/file.csv --name chunk --rows 999

>>> chunk1.csv  # 999 rows
>>> chunk2.csv  # 999 rows
>>> chunk3.csv  # 999 rows
...

File number

# Split original files into 3 files
./rowsplit ./my/huge/file.csv --ext txt --files 3

# example: 3700 rows / 3 files
>>> split1.txt  # 1234 rows
>>> split2.txt  # 1233 rows
>>> split3.txt  # 1233 rows

Options

Option Description Default
FILE Input file to be splitted (required)
-r, --rows <int> Number of rows per file (required, conflicts --files)
-f, --files <int> Number of file to output (required, conflicts --rows)
-n, --name <string> Name of splitted file split
-x, --ext <string> File extension to be used for splitted files csv

rowsplit's People

Contributors

waldeck-dev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.