How to Remove Occurrences of a String using sed command In case you have a large number of data provided…