eBay / tsv-utils

eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
https://ebay.github.io/tsv-utils/
Boost Software License 1.0
1.43k stars 80 forks source link

tsv-split: Default output file suffix to input file extension. #274

Closed jondegenhardt closed 4 years ago

jondegenhardt commented 4 years ago

tsv-split: This PR changes the default output file suffix from ".tsv" to the extension of the first input file. The extension is empty when reading from standard input. The suffix can be customized using --suffix. For example, the command:

tsv-split --num-files 100 data.txt

will produce output files of form: part_00.txt, part_01.txt, ..., part_99.txt. Previously these output files would have ".txt" extensions.