> I never knew sed was so annoying. Neither did I :-( > Much better off switching to Lua in the future! Indeed :-) Using gsub, etc. Or even LPeg! In case you're interested, Will, since you're also on the Mac, the problem was that I couldn't get Mac OS' sed (a BSD sed) to interpret the espace sequence "\n" as a newline character... Arthur