sed does the job and on almost all UNIX clones it never needs to be installed.
Because it's already there.