Cool thanks Ken, I hadn't really played with grep at all, that and
*bang have just halved the code I am writing.