Skip to content

Instantly share code, notes, and snippets.

View LiamFry's full-sized avatar

LiamF LiamFry

  • NY, NY
View GitHub Profile
@LiamFry
LiamFry / progress-bar2
Created August 27, 2025 06:47
Possible speedup for "animated progress bar in bash"
#!/usr/bin/env bash
BATCHSIZE=1
BAR_CHAR='|'
PAD_CHAR=' '
LENGTH=50
BAR_POOL=$(eval "printf \"${BAR_CHAR}%.0s\" {1..$LENGTH}")
PAD_POOL=$(eval "printf \"${PAD_CHAR}%.0s\" {1..$LENGTH}")