Use a one-liner:
$ perl -pi.bak -e 's/blue/red/g' *_classification.dat
Explanation
-pprocesses, then prints<>line by line-iactivates in-place editing. Files are backed up using the.bakextension- The regex substitution acts on the implicit variable, which are the contents of the file, line-by-line