Quoting Malcolm Heath <malcolm@xxxxxxxxxxxxxxxxx>: > This was a quickly thrown together expression to deal with the input > the poster had specified, which didn't have any lines of only spaces. > That's to all of you for you suggestions.It did the trick. Malcolm, Thanks for the link to the regrex tutorial, I have a look at it. The book your referring to is from O'Reilly, I actually had that at one point a couple of years ago. Thanks again, David - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html