Re: check if string exists in file
Posted by ErmanArslansOracleBlog on Mar 05, 2018; 8:58am
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/check-if-string-exists-in-file-tp5298p5302.html
use "i" argument.
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
Ex: sed -i 's/^IMPORTGAIAGCICIFLAG.*/IMPORTGAIAGCICIFLAG='"$now"'/g' /home/oracle/application.properties