Case-insensitive substitution sed

GNU sed /I flag for case-insensitive match

sed 's/error/ERROR/gI' file.txt