Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero pad filename (--filename option to split) #277

Open
d6y opened this issue Aug 31, 2021 · 0 comments
Open

Zero pad filename (--filename option to split) #277

d6y opened this issue Aug 31, 2021 · 0 comments

Comments

@d6y
Copy link

d6y commented Aug 31, 2021

I sometimes need to split a CSV into batches of rows, process them, and then recombine them. It would be convenient if the --filename argument allowed for {} to be zero padded to preserve file sort ordering (during shell scripting; eg., the ls ordering).

For example, when batching into blocks of 30 rows, I'd like to see 000.csv, 030.csv, and so on. Currently, I might see 0.csv, 120.csv, as the ordering with 30.csv appearing later.

jqnatividad added a commit to dathere/qsv that referenced this issue Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant