View Single Post
  #3  
Old September 10th 18, 01:59 PM posted to alt.windows7.general,microsoft.public.windowsxp.general,alt.comp.os.windows-10,alt.comp.freeware,alt.comp.hardware.pc-homebuilt
Philip Herlihy
external usenet poster
 
Posts: 7
Default Merge text files & then sort unique in DOS

In article ,
says...

On 9/4/2018 11:16 PM, Grease Monkey wrote:
Merging text files is easy in DOS
for %f in (*.txt) do type "%f" output.txt

But how do you sort unique in DOS?


MS DOS has a SORT.EXE if I remember correctly... it's such a long time
ago....


Yes, but it doesn't have a /unique option.

Powershell can do this, as can the Bash shell if you install that.

(only now seeing that this wasn't sent when I expected it to be!)

--

Phil, London