sed -i
Watch out, that's a Linux-ism and macOS's sed will cheerfully use the thing after it as the backup expression; as far as I know, the absolute safest choice is to always specify a backup extension "sed -i~" or "sed -i.bak" to make it portable, although there are plenty of work-arounds trying to detect which is which and "${SED_I} -e whatever" type sillinessMy contribution (and yeah, I know, PR it ...) is that I get a lot of mileage out of setting the terminal title from my scripts:
title() { printf '\033]0;%s\007' "$*"; }
and there's one for tmux, too printf '\033]2;%s\007' "$*";
with the two infinitely handy resources: