Hello I want to iteratively merge the files in input_directory and put the merged ones in output_directory.
Suppose in input_directory I have : file1.txt, file2.txt, file3.txt
I want to the output directory to contain the following files:
- merge1.txt : same as file1.txt
- merge2.txt : merge file1.txt file2.txt
- merge3.txt : merge file1.txt file2.txt file3.txt
I have almost no experience with bash scripts, it is obvious that it can be done with an iterator in a for loop, but I don't know how.
Thank you in advance..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…