I have a list of the locations of each text file that need this done inside add.txt
For example inside add.txt
I have the following
/root/QuestDiary/MapQuest_Def/Mon_Umyounkijang.txt
/root/Market_Def/06Inn_SamakwAr-5.txt
I need a script to open every text file in that list and add ;; to the top and bottom of each of them. It also must also open files/folders that have capitals, it's listed as /root/Market_Def/06Inn_SamakwAr-5.txt
in the file but the actual file name is /root/Market_DEF/06Inn_SamakWar-5.txt
06Inn_SamakWar-5.txt
currently looks like
%100
+40
+1
[@main]
#IF
checkpkpoint 2
#SAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_0
#ELSESAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_1
[@buy]
#SAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_2
[@sell]
#SAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_3
[Goods]
Jerk 1000 1
[@TalkToQuest]
#CALL [NPCQuest_Def\02Weapon_BichonSung-10.txt] @NPCQuest_Check
[@everythingreward]
#CALL [System\TotalRewardSystem.txt] @TotalRewardSystem
It should change to
;;
%100
+40
+1
[@main]
#IF
checkpkpoint 2
#SAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_0
#ELSESAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_1
[@buy]
#SAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_2
[@sell]
#SAY
#INCLUDE [..\Convert_Def\Market_Def\01Meet_BichonSung-10.txt] @Convert_01Meet_BichonSung-10_3
[Goods]
Jerk 1000 1
[@TalkToQuest]
#CALL [NPCQuest_Def\02Weapon_BichonSung-10.txt] @NPCQuest_Check
[@everythingreward]
#CALL [System\TotalRewardSystem.txt] @TotalRewardSystem
;;