User Tools

Site Tools


find_unique_instances_of_text_in_bash

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
find_unique_instances_of_text_in_bash.txt · Last modified: 2018/12/31 18:38 by 127.0.0.1