In linux, I can grep a string from a file using grep mySearchString myFile.txt
.
How can I only get the result which are unique?
Linux – How to filter out unique results from grep output
command linelinuxUbuntu
command linelinuxUbuntu
In linux, I can grep a string from a file using grep mySearchString myFile.txt
.
How can I only get the result which are unique?
Best Answer
You can achieve this with the
sort
anduniq
utilities.example:
depending on the data you may want to utilize some of the switches as well.