Hi Richard, Have a look at 'sed' or 'awk' for this one (and the meaning of regular expressions). It should be pretty straight forward. HTH, Steffen