jcd: better sed: instead of "/pattern/b branch\nd\n:branch" do "/pattern/ !d"