Sample Header Ad - 728x90

Zenity Progress Bar

1 vote
1 answer
806 views
I made a shell script which uses this command to calculate a sha256 checksum recursive for a directory for example /run/media/$USER/directory:
find . -type f -exec sha256sum {} \; | sort -k 2 | sha256sum
This process takes some time. Meanwhile I want to display a progress bar via **zenity** that shows the current progress according to the command. I tried it with:
find . -type f -exec sha256sum {} \; | sort -k 2 | sha256sum | zenity --progress --title="Checksum"
but it doesn't show any percentages: enter image description here Thanks for your time! :)
Asked by stewie (31 rep)
Sep 29, 2022, 12:05 PM
Last activity: Sep 30, 2022, 10:40 PM