为多个文件添加页脚

add footer to multiple files

我有一堆保存在 .txt 中的平面文件 format.I 想在每个文件中添加相同的页脚。如下

1st line text in file 1 2nd line text in file 1 footer 1st line in file 2 2nd line in file 2 footer
我可以在记事本++中试试这个
search: ^ replace: Header\n
但结果
1st line text in file 1 footer 2nd line text in file 1 footer 1st line in file 2 footer 2nd line in file 2 footer
我只希望在文件的最后一行下方显示一次页脚。
任何帮助将不胜感激

查找:

(.*)\K

替换:

THIS IS THE FOOTER

一定要检查 。匹配搜索模式框中的换行符框(以及选择正则表达式)。