Which of the following sed commands will replace all instances of the string foo with the string foobar…