You Asked: How Does Sed Command Work in Unix?
Contents Sed Command in Unix Is Stands for Stream Editor and It Can Perform Lot’s of Function on File Like, Searching, Find and Replace, Insertion or Deletion...
SED command in UNIX is stands for stream editor and it can perform lot’s of function on file like, searching, find and replace, insertion or deletion. Though most common use of SED command in UNIX is for substitution or for find and replace.
What does sed command do in Linux?
SED is used for finding, filtering, text substitution, replacement and text manipulations like insertion, deletion search etc. It’s a one of the powerful utility offered by Linux/Unix systems. We can use sed with regular expressions.
Must Read
What is S and G in sed command?
Substitution command
In some versions of sed, the expression must be preceded by -e to indicate that an expression follows. The s stands for substitute, while the g stands for global, which means that all matching occurrences in the line would be replaced.