Replace ignoring case

The /I flag in GNU sed makes the match case-insensitive

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

tool
sed15 commands
tags
sedlinux

More sed commands

all 15 sed commands