Login
From:
learnbyexample
(Uncensored)
subscribe
CLI tip 28: substitute specific occurrence with GNU sed
https://learnbyexample.github.io/tips/cli-tip-28/
links
backlinks
Roast topics
Find topics
Find it!
By using the g flag with the s command (substitute), you can search and replace all occurrences of a pattern. Without the g flag, only the first matching portion will be replaced.