]> Creatis software - clitk.git/commitdiff
nice print and verbose
authorPierre Gueth <pgueth@ccage002.in2p3.fr>
Mon, 20 Jun 2011 11:09:36 +0000 (13:09 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 27 Jun 2013 12:47:28 +0000 (14:47 +0200)
cluster_tools/gate_power_merge.sh

index 1a16b5493069e56aa3137b37d5a59ffac78d34d2..c1c475576f35cea17ad1a682de68f55ac863510d 100755 (executable)
@@ -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 {