4 ms·
Yes, it is used in vim and sed (and probably more). s is for "substitute". g means global, substitute each occurrence, not just the first.
by jononor 8y ago
Yes, it is used in vim and sed (and probably more). s is for "substitute". g means global, substitute each occurrence, not just the first.
- Nerada 8y agoThanks! I've been scratching my head on that one for a while.