Find and replace in Unix Using SED

Find and replace in Unix Using SED

Common Find and Replace Commands: sed 's/find/replace/' filename To replace all search terms sed 's/find/replace/g' filename To replace without case sensitive sed 's/find/replace/gi' filename To replace withing a range sed '1,/search-term/s/find/replace/gi' filename This command will help to find and replace string in a file. You can find and replace multiple files using SED.