6
如何从文件中随机替换文本?
如何将一个文本文件中的特定字符串随机替换为另一文件中的字符串?例如: file1.txt(file has more than 200 lines): moonwalker@address.com hansolo@address.com anakinskywalker@address.com obiwankenobi@address.com darthvader@address.com file2.txt(file has 10-20 lines): @adress1.com @adress2.com @adress3.com @adress4.com @adress5.com output.txt: moonwalker@address4.com hansolo@address1.com anakinskywalker@address5.com obiwankenobi@address2.com darthvader@address3.com