2 ms·
Yes. Not easy to google! From the sed manual ('man sed'): s/regular expression/replacement/flags – Substitute the replacement string for the first instance o
by yesenadam 6y ago
Yes. Not easy to google! From the sed manual ('man sed'):
s/regular expression/replacement/flags – Substitute the replacement string for the first instance of the regular expression in the pattern space. ...
g – Make the substitution for all non-overlapping matches of the regular expression, not just the first one.