SORT supports the /UNIQUE and /CASE_SENSITIVE options!

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

SORT supports the /UNIQUE and /CASE_SENSITIVE options!

#1 Post by dbenham » 23 Jan 2021 14:01

As I just learned at viewtopic.php?f=3&t=9923&p=63727#p63726, SORT supports the /UNIQUE option, at least on Windows 10 :!: :D

The built in help makes no mention of it, so it is no wonder that I've never seen this behavior before.

Has anyone ever run across this option before, or seen it documented by Microsoft anywhere? What Windows version did it become available?


Dave Benham

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: SORT supports the /UNIQUE option!

#2 Post by ShadowThief » 23 Jan 2021 14:18

I could have sworn that we already had a thread about this and I learned about it from that. Naturally, I can't check because search is currently broken. :roll:

It got added with Windows 10 (https://stackoverflow.com/a/50314929/4158862), but it seems that Microsoft forgot to document it.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: SORT supports the /UNIQUE option!

#3 Post by aGerman » 23 Jan 2021 14:27

SS64 lists it as being available on Win 10. However, I never noticed it. Shame on Microsoft that they didn't even document such a helpful feature :(
https://ss64.com/nt/sort.html

Steffen

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: SORT supports the /UNIQUE option!

#4 Post by dbenham » 23 Jan 2021 14:35

Ooh, good for SS64.

So /UNIQUE can be abbreviated as /UNIQ

Also on SS64 is the undocumented /UNI-OUTPUT (or /U) that outputs in unicode (UTF16), available since Win 7. I did not know about that one either, though it is not of much interest to me.


Dave Benham

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: SORT supports the /UNIQUE option!

#5 Post by dbenham » 23 Jan 2021 14:42

And also on SS64, the /C (/CASE_SENSITIVE) option, again available since Win 7 - Now that is useful :!: :D

Eureka!
Posts: 137
Joined: 25 Jul 2019 18:25

Re: SORT supports the /UNIQUE option!

#6 Post by Eureka! » 23 Jan 2021 19:20

ShadowThief wrote:
23 Jan 2021 14:18
I could have sworn that we already had a thread about this and I learned about it from that.
There was. This was the first time I heard about it (thanks to @penpen), but undoubtedly there were earlier mentions of it.

Post Reply