macOS / binaries /

sed

/usr/bin/sed
Stream editor

The sed utility reads the specified files, or the standard input if no files are specified, modifying the input as specified by a list of commands.

source: man