I execute a sed
command in my script:
sed -i "${1}s/${2}=.*/${2}=${REPLY}/" $3
this is the echo:
sed -i 13s/log4j.appender.ROOT2.File=.*/log4j.appender.ROOT2.File=/app/TET/log.log/ /applis/DIAPASON/diapason1/conf/log4j.properties
My error:
sed: -e expression n°1, character 61: unknown option for
s`'
sed
" — actually, any version of Sed that is POSIX compliant can use any character other than a newline or a backslash as a delimiter for thes
command. – Wildcard Oct 11 '17 at 23:39