If that fits your needs, it makes sense, I think
![Smilie Smilie](https://www.unix.com/images/smilies/smile.gif)
Adding the entry for this group on that 300 files could be done with a for loop and sed for example. You alter the files, write them to a tmp name and move it back over the original. Test it out before you go on your life data.