sed solução:
sed 's/#\([[:space:]]*Require all granted\)/ /' graphite-web.conf
A saída:
#<IfModule mod_authz_core.c>
# # Apache 2.4
# Require local
# Order Allow,Deny
# Allow from All
Require all granted
#</IfModule>
#<IfModule !mod_authz_core.c>
# # Apache 2.2
Require all granted
# Order Allow,Deny
# Deny from all
# Allow from All
# Allow from ::1
#</IfModule>
Para editar o arquivo no local - adicione -i
option:
sed -i ....