On Wednesday 04 July 2007, ann kok wrote: > Hi all > > how can I use grep to have the output as 60.40.2.x > > eg: > 60.40.2.5 > 60.40.2.3 > 60.40.2.7 > > except 60.40.2x.x > > eg: > 60.40.20.5 > 60.40.23.6 > 60.40.25.7 > > Thank you grep '60\.40\.2\.[0-9]*' HTH, Pieter de Goeje