more portable sed syntax