What's wrong with printf?
In reply to Re: writing results on two different columns on the same file by dHarry in thread writing results on two different columns on the same file by steph_bow