sed command usage

Command sed means “Stream EDitor”. The format for searching and replacing is as below: sed -i.bak s/STRING_TO_REPLACE/STRING_TO_REPLACE_IT/g build.gradle Explanation: pass the -i  option to sed to make the changes inline and create a backup of the original file before it does the changes in-place. Without the .bak the command will fail on some platforms, such as Mac …

Continue reading sed command usage

Advertisement