In this video, you'll learn about SED.
SED is a stream editor, another utility that was developed in the 1970s already.
It's used to search and transform text, so it's a programmatic way to approach text files.
It is very powerful, but most of the power of SED is not really used anymore nowadays.
You can use it to search for text and perform an operation on matching text.
Let me show you a couple of examples.
Let me start with SED-N 5P on a reg access, where we can see that this is Nenabah.
Now let me show you SED-I S. S is a substitute.
We have seen this in VI as well.
I am going to substitute Anna with Otto, whatever.
G is making it a global substitute.
Like in VI, without the G, it is only going to substitute the first occurrence.
With the G, it's going to substitute all of them.
And there we go.
And did it really work out well?
Well, as you can see, it seems to be working pretty well.
What I also like a lot is this one, SED-I-E 2D on a reg access,
which is going to delete line number two.
Now what is so cool about it?
Sometimes you will have a utility that's complaining about a specific line,
and you think, hey, I need to delete this line.
Well, then this is your friend.
This is how you are going to do it.