I have a bunch of around 600 files i need to add a line to the top of them, pushing all other lines one row down.
How i can do this most easily? The files are .java files.
Thanks in advance!
I have a bunch of around 600 files i need to add a line to the top of them, pushing all other lines one row down.
How i can do this most easily? The files are .java files.
Thanks in advance!
In Notepad++, go to Search
> Find in Files...
menu (shortcut CTRL+Shift+F) and do the following:
Find what:
(.+)
Replace with:
Your new line\n$1
Filters:
*.java
Directory: choose the directory with these 600 files
Select radio button "Regular Expression" and check ". matches newline"
Then press "Replace in Files"