Find Unique Instances of Text in Bash
If you need to find unique instances of text within a text file in bash, modify the following to suit:
cat file_name | grep "text_to_search_for" | sort | uniq
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
If you need to find unique instances of text within a text file in bash, modify the following to suit:
cat file_name | grep "text_to_search_for" | sort | uniq