|
Answer» Is there a utility included with any Windows or MS-Dos version (not a third-party program) which will merge two or more alpha-sorted text files?
Thanks.Not directly, but there are a couple of utilities that will accomplish the TASK.
Code: [Select]copy fileA.txt+fileB.txt fileC.txt sort fileC.txt /o fileD.txt
The copy statement concatenates the two files; the sort statement sorts the contents of the concatenated file effectively sort/merging the records
Sort is ONE of the few commands that can TAKE input from the pipe. Unfortunately, the code produced REALLY WRONG output when I used it.Thanks, that way is already used, just wanted to get round having to copy/resort the files.
|