From 5053a3c197f4a2870dfc90e0d8ee8741643173ca Mon Sep 17 00:00:00 2001 From: Pierre Gueth Date: Mon, 20 Jun 2011 13:09:36 +0200 Subject: [PATCH] nice print and verbose --- cluster_tools/gate_power_merge.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.1