View Single Post
  #12  
Old September 6th 18, 11:37 AM 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: 208
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.

--

Phil, London
Ads