/splits

This command line split file into parts

Primary LanguageGoMIT LicenseMIT

splits

This command line split file into parts.

GitHub go.mod Go version Build GitHub license

Install

> go get github.com/gonejack/splits

Usage

  1. split by parts
> splits -n 2 test.txt
  1. split by size
> splits -b 100k test.txt
  1. merge
> cat test.text.* > merged_test.txt
Flags:
  -h, --help                    Show context-sensitive help.
  -n, --chunks=3                split into n parts
  -b, --size-per-part=STRING    split into sized parts
  -v, --verbose                 Verbose printing.
      --about                   About.