in reply to add character to all lines starting with..

perl -wpi -le '$_ .= "%" if m!^/index!' file

Abigail