Every person associated with the unix / linux would be familiar with the text editor called vi / vim. but not many people know that vi / vim can be used as a stream editor. This is one example of how to use vi / vim as a text editor. suppose we have a text file containing the following text:
sample.txt
we will change the “hahaha” becomes “gagaga”
here’s what we do using vim
1 | $ vim -b -c ":%s/hahaha/gagaga/g|:wq" sample.txt |
3 | "sample.txt" 6L, 24C written |
Now let’s see change that we’ve made
cool isn’t it? 
nice info
Great! So excited to know about this.