Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Thanks! I've been scratching my head on that one for a while.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: