$ echo 'good morning google' | sed s/o/O/ ←Changes the lowercase "o" to uppercase "O" gOod morning google $ echo 'good morning google' | sed s/o/OOOO/ ←Changes the "o" to "OOOO" gOOOOod morning google |
$ echo 'good morning google' | sed s/oo/OO/g ←Changes all instances of "oo" to "OO" gOOd morning gOOgle |
sed has its own scripting language, making its usage relatively complex and not easily explained in just a few lines. However, it's worth learning, and if you're interested in delving deeper, you can refer to the provided link for more information.