What is the difference between "sort -u" and "sort | uniq"?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=ORrkimXXL-E



Duration: 5:36
1 views
0


What is the difference between "sort -u" and "sort | uniq"?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/5032/benubird)Benubird |
(unix.stackexchange.com/users/10762/chris-down)Chris Down |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
(unix.stackexchange.com/users/39307/clf)CLF |
(unix.stackexchange.com/users/118313/jerry-marbas)Jerry Marbas |
(unix.stackexchange.com/users/93435/stefanos-chrs)Stefanos Chrs |
A special thanks goes out to the (https://unix.stackexchange.com/questions/76049/what-is-the-difference-between-sort-u-and-sort-uniq)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

bash uniq sort







Tags:
bash
uniq
sort