Description
Processes and transforms text streams from files or pipelines. It can search, replace, delete, print, and rewrite lines automatically, which makes it useful for scripts and command-line text processing.
Use it when you need repeatable text changes without opening an interactive editor. Because it can modify many lines quickly, commands should be tested before changing important files.