Back to Blog
Arnošt Havelka

SORT - Unique Lines

Sort and remove duplicates.

Start Interactive Lesson
SORT - Unique Lines

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.

Up Next

Data Ninja Drill

Combine commands to process data.