Skip to content

Commit 93147ec

Browse files
committed
tqdm: add examples
1 parent f6909a0 commit 93147ec

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pages/common/tqdm.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# tqdm
22

3-
> Create a progress bar.
3+
> Show progress over time of a command.
44
> More information: <https://tqdm.github.io/>.
55
6+
- Show iterations per second and use stdout afterwards:
7+
8+
`{{seq 10000000}} | tqdm | {{command}}`
9+
610
- Create a progress bar:
711

8-
`seq 10000000 | tqdm --total 10000000 --null`
12+
`{{seq 10000000}} | tqdm --total 10000000 | {{command}}`
13+
14+
- Specify unit and total:
15+
16+
`tar -zcf - {{docs/}} | tqdm --bytes --total $(du -sb {{docs/}} | cut -f1) > {{backup.tgz}}`

0 commit comments

Comments
 (0)