tqdm is a fast, extensible progress bar for Python and CLI. By visually displaying the processing status of data, you can easily check the progress of long-running tasks. This article introduces how to implement a progress bar using tqdm on the Bash command line.
Installation
First, install tqdm. You can easily install it using pip.
sudo pip install tqdm
Usage Example
tqdm can be used to display the progress of various commands. For example, when processing large-scale data, you can check its progress in real-time. Below is an example of sequence generation and line counting.
seq 99999999 | tqdm --bytes | wc -l
In this command, seq 99999999 generates numbers from 1 to 99999999, wraps them with tqdm to display a progress bar. The final output is counted by wc -l for the number of lines.
Detailed Information and Customization
tqdm has many customization options, allowing you to configure the progress bar display in detail. For details, refer to the official documentation.
tqdm/tqdm: A Fast, Extensible Progress Bar for Python and CLI

In this way, by utilizing tqdm, you can make command line operations more intuitive and efficient. Please give it a try.