Unique Sorting
Remove duplicates while sorting your data.
The -u Flag
The -u (unique) flag tells sort to suppress all but one in each set of lines that sort equally.
Usage:sort-u
-u
Unique sort - remove duplicates
References
These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.