Skip to content

Instantly share code, notes, and snippets.

@gohoyer
gohoyer / progressbar.sh
Last active November 6, 2017 10:54 — forked from stevenrombauts/progressbar.sh
Bash Progress Bar
#!/bin/bash
# Slick Progress Bar
# Created by: Ian Brown ([email protected])
# Please share with me your modifications
# Note: From http://stackoverflow.com/questions/11592583/bash-progress-bar
# Functions
PUT(){ echo -en "\033[${1};${2}H";}
DRAW(){ echo -en "\033%";echo -en "\033(0";}
WRITE(){ echo -en "\033(B";}
HIDECURSOR(){ echo -en "\033[?25l";}