Inserting some text at the beginning of each file

Check the Regular expressions option and enter the following regular expression: ^^. Now enter the text you want to insert into the Replace with field:

It's also possible to insert the filename into each file, which is useful if you need to insert a file header into your source code files. Such file header is a comment at the top of the source code file and typically includes copyright information, license, author name, and a quick description of the file.

This is a page from Aba Search and Replace help file.