An example sentence.
s/n example/ processed/ 2 d
s/test/tested/
Note: Use -i.backup instead of just -i because the BSD sed, unlike the GNU sed, requires -i <extension>.
-i.backup
-i
sed
-i <extension>
s/test/tested again/