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

RFE: 0-padding in numbering archived file names #224

Open
sphakka opened this issue Aug 27, 2018 · 3 comments
Open

RFE: 0-padding in numbering archived file names #224

sphakka opened this issue Aug 27, 2018 · 3 comments
Labels

Comments

@sphakka
Copy link

sphakka commented Aug 27, 2018

For better lexical ordering, I'd like to have numbering of archived file names padded with leading zeroes, i.e.

foo-bar.04.gz

instead of

foo-bar.4.gz

The corresponding option should be a switch. The padding should depend on the rotate value, so that, if we're rotating >=10 times, two zeros should be prepended, etc.

@kdudka
Copy link
Member

kdudka commented Aug 27, 2018

What are you going to use the lexical ordering for?

@sphakka
Copy link
Author

sphakka commented Aug 27, 2018

Basic (manual) admin tasks... and don't like much the dateext option.

@kdudka
Copy link
Member

kdudka commented Aug 27, 2018

Could you be more specific?

For the manual tasks I know of, ls -v, sort -V, or zsh's NUMERIC_GLOB_SORT work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants