How to replace one substring for another string in shell script?

You can use sed or awk command to replace one substring for another string in shell script

Replace all occurrences of a string in a file:

Replace n occurrence of a string in a file:

Replace a range of occurrences of a string in a file:

Leave a Reply