I am learning shell-scripting and for that I am using HackerRank. There is a question related to
sed on the same site: 'Sed' command #1:
For each line in a given input file, transform the first occurrence of the word 'the' with 'this'. The search and transformation should be strictly case sensitive.
First of all I tried,
but in that sample test case failed. Then I tried
sed 's/the /this /'
and it worked. So, the question arises what difference did the whitespaces created? Am I missing something here?