printf is probably what you want.
In reply to Re: formatting output by husker in thread formatting output by slok