Looks like ed script works.