You could use the utility described in this blog entry by Dominus.
In reply to Re: awk...ward by ambrus in thread awk...ward by rgiskard