#!/bin/bash space="$(expr $(expr $(tput cols) / 2) - $(expr $(expr $(echo $*|wc -c) - 1) / 2))" until [ "$space" = "0" ];do echo -n " " let space-=1 done echo $* exit 0