Thanks, I've been looking at a shell script for this.