Ok, I'm not sure what happend, but I used your reference tybalt89 and I think I got the result I was after... grep does work! thanx a gigabyte,
I'm going to continue with my program now (it kinda got more complicated than I thought when I started the project)... thanx again guys, given the time and enough twinkies, you guys have come through for me again...