in reply to please help on subsituting a pattern in a file

perl -i.bak -pe 's/(CLASSATTRIBUTES)/lc $1/e' file1 file2 /path/to/file/3

That has some caveats. First, you shouldn't use a glob as an argument to that for security reasons. Also, that will create backup files named with .bak, just in case you make a mistake. Finally, if that string appears more than once and you want all instances lowercased, add a /g to the substitution.

-sauoq
"My two cents aren't worth a dime.";