Address range substitution

Apply substitution only to lines 5 through 15

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

tool
sed15 commands
tags
sedlinux

More sed commands

all 15 sed commands