-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
tqdm: add examples #15751
base: main
Are you sure you want to change the base?
tqdm: add examples #15751
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
7d19cdc
to
faca4b0
Compare
Co-authored-by: Lena <[email protected]>
I think it's time to return to this PR now that a lot of things have been resolved. |
Co-authored-by: Managor <[email protected]>
|
||
- Create an archive out of a directory and use the file count of that directory to create a progress bar: | ||
|
||
`zip -r {{backup.zip}} {{dir}} | tqdm --total $(find {{dir}} | wc -l) --unit files --null` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`zip -r {{backup.zip}} {{dir}} | tqdm --total $(find {{dir}} | wc -l) --unit files --null` | |
`zip -r {{path/to/archive.zip}} {{path/to/directory}} | tqdm --total $(find {{path/to/directory}} | wc -l) --unit files --null` |
Sadly this makes the command longer but hopefully it clarifies things
- Create a progress bar: | ||
|
||
`seq 10000000 | tqdm --total 10000000 --null` | ||
`{{seq 10000000}} | tqdm --total 10000000 | {{command}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`{{seq 10000000}} | tqdm --total 10000000 | {{command}}` | |
`{{seq 10000000}} | tqdm --total {{10000000}} | {{command}}` |
We could use Also it would be good if the description noted that it is platform agnostic. |
common
,linux
,osx
,windows
,sunos
,android
, etc.