From: Pierre Gueth Date: Mon, 20 Jun 2011 11:09:36 +0000 (+0200) Subject: nice print and verbose X-Git-Tag: v1.4.0~177^2~22 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5053a3c197f4a2870dfc90e0d8ee8741643173ca;p=clitk.git nice print and verbose --- diff --git a/cluster_tools/gate_power_merge.sh b/cluster_tools/gate_power_merge.sh index 1a16b54..c1c4755 100755 --- a/cluster_tools/gate_power_merge.sh +++ b/cluster_tools/gate_power_merge.sh @@ -19,7 +19,7 @@ function update_bar { local count="${1:?"provide count"}" local message="${2:?"provide message"}" local percent=$(echo "100*${count}/${count_max}" | bc) -printf "[%03d/%03d] %3d%% %-80s\r" ${count} ${count_max} ${percent} "${message}" +printf "[%03d/%03d] %3d%% %-80.80s\r" ${count} ${count_max} ${percent} "${message}" } function end_bar {