macOS / binaries /

psed

/usr/bin/psed
A stream editor

psed reads the input stream consisting of the specified files, processes is line by line by applying a script consisting of edit commands, and writes resulting lines to standard output.

source: man