I am trying to do a sed replacement with pattern
s/^\(ENGINE.*\)DEFAULT CHARSET=utf8mb4$/\1/g
but it doesn't seem to work. Can someone please tell me what am I doing wrong?
I am trying to replace
ENGINE=InnoDB AUTO_INCREMENT=19391 DEFAULT CHARSET=utf8mb4
with
ENGINE=InnoDB AUTO_INCREMENT=19391