split-tk-0.1.0 is not a library.
split-tk
Helpers for splitting stuff, like files.
Simply install with cargo install split-tk, and start using it.
For example, suppose you want to split a sequence of numbers in sets of ten:
|
Use {} (just like GNU parallel) to specify where the batch should be placed in the command. It can be specified as many times as you want.
If playing with json this can be inconvenient since {} is a valid json itself, you can specify a different replacement tag with -g, for example:
|
To-Do
The following are some changes and features being considered in future versions. Feel free to suggest others.
- [FEAT] File as an input.
- [FEAT] Parallel command execution.
- [FEAT] Redirect to command stdin instead of command line.