This is a follow-up question to this question.
I have a list of compressed *.bz
files whose content I push through a pipe as follows:
result=$(find . -name '*bz2' -exec bzcat {} +
| tee >( some | other | pipeline )
| grep -e "myString"
| wc -l)
echo "${result} occurrences found"
This will process the decompressed contents of the files with a sub-pipeline (some | other | pipeline)
and at the same time count and return the occurrences of the string myString
.
The pipeline works but now I want to display a progress bar using Pipeline Viewer. The progress should be shown as the number of already processed *.bz2
files.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…