'Sed' command #3, is a HackerRank problem from Grep Sed Awk subdomain. In this post we will see how we can solve this challenge in Sh

Problem Description

Sed is a popular utility which enables quick parsing and transformation of text. Here are some very simple examples of sed in action.

Substitute the first occurrence of 'editor' with 'tool'.

$:~/hackerrank/bash/grep/grep1$ echo "My favorite programming editor is Emacs. Another editor I like is V ....

You can find the full details of the problem 'Sed' command #3 at HackerRank

Solution: Please check the the-sed-command-3.sh snippet for the solution.

This solution originally posted at: Github by @srgnk