X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FBUILDER%2Fmakefile%2Fprivate%2Fscript%2FprintTable.sh;fp=WCudaMSE%2FBUILDER%2Fmakefile%2Fprivate%2Fscript%2FprintTable.sh;h=382ed0ca64c634378e21c70b0eec9cbeeb6f6ada;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/BUILDER/makefile/private/script/printTable.sh b/WCudaMSE/BUILDER/makefile/private/script/printTable.sh new file mode 100755 index 0000000..382ed0c --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/script/printTable.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# + + +# --------------------------------------- +# input +#---------------------------------------- + +# "$@" : container + +# --------------------------------------- +# private +#---------------------------------------- + +i=0 +for element in $@ + do + if [ $((i % 2)) -eq 0 ]; then + echo -n "[CBI] -> : " + echo -n ${element} + else + echo -n " " + echo -n -e '\t\t' + echo ${element} + fi + + + i=$((i+1)) + done + +# --------------------------------------- +# end +#----------------------------------------