Replace in a line range

Apply the replacement only to lines 5-15

sed '5,15s/DEBUG/INFO/g' app.log

tool
sed15 commands
tags
sedlinux

More sed commands

all 15 sed commands