I want to replace the lines matching a pattern from multiple files from the lines in order from another file, i have up to 500 txt files, with structure: test1.txt, test2.txt, test3.txt...
11111 22222 mock 55555 77777
and so reading file one by one we like to replace in first test1.txt file mock line with first line from mock.txt file, in second test2.txt replace mock line with second line from mock.txt file, which has structure like:
randomText1 randomText2 randomText3 randomText4 randomText5
and so on till the last .txt file in filder