Skip to content

Instantly share code, notes, and snippets.

@Sarojm1991
Sarojm1991 / examples-sed
Created July 28, 2021 12:05 — forked from dlfinis/examples-sed
Examples of Sed' Use
The syntax of sed command replacement is:
$ sed 's/find/replace/' file
This sed command finds the pattern and replaces with another pattern. When the replace is left empty, the pattern/element found gets deleted.
Let us consider a sample file as below:
$ cat file
Linux