Will apply, but just to let you know, I wrote my example on separate lines
(and with separate -n and -e options for that matter) for a reason. I
recall some implementation of sed (perhaps older BSDs, but don't quote me
on that) did not understanding semicolon with close brace on the same
line. It may not be a problem in practice these days, but I do not have
access to many different platforms to check as I used to.