How can I merge a number of text files into one in a particular sequence? The content of the files are ~ delimited. The files themselves need to be merged in a particular sequence; lowest first. The script needs to loop through a directory of a number of text files. The content of the files are ~ delimited. For example File1.txt File2.txt File3.txt File4.txt -The script needs to loop through a directory containing these files. -File1.txt is the lowest numbered file and should be merged into file File2.txt as well as removing all duplicates from file two. -This leaves us with a merged File1.txt. -File1.txt should ben be merged with File3.txt as well as removing any duplicates from file three. -File1.txt should then be merged with File4.txt as well as removing any duplicates from file four.. -This leaves us with a merged File1.txt containing unique vales off all four files. -The remaining files should then be deleted.