Unix Sed Tutorial: Find and Replace Text Inside a File Using RegEx This article is part of on-going Unix Sed Tutorial series. In previous articles, we discussed about sed print operation and sed delete operation. In this article let us review how to use sed substitute command “s”. The `s’ command is probably the most important in `sed’ and has a lot of different options. The `s’ command attempts t