'Adding a line to multiple files in directory

I have a line to be added to 3rd line of all files in directory. What's the commandline to do this operation Lets say I want to add "color #c2451 " to 3rd line of files in Class directory



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source