Pattern: Use of sed -e
Issue: -
See if you can use ${variable//search/replace}
instead.
Example of incorrect code:
string="stirng" ; echo "$string" | sed -e "s/ir/ri/"
Example of correct code:
string="stirng" ; echo "${string//ir/ri}"
Pattern: Use of sed -e
Issue: -
See if you can use ${variable//search/replace}
instead.
Example of incorrect code:
string="stirng" ; echo "$string" | sed -e "s/ir/ri/"
Example of correct code:
string="stirng" ; echo "${string//ir/ri}"