After some searching, I found a grep
command that will find words containing capital letters, and list them without duplicates:
grep -hoP "\w*[[:upper:]]+\w*" * | sort -u
However, when it comes to words that contain characters such as ê
, it seems that grep returns the word only up to that character, ignoring the character and anything afterward. My text is encoded as UTF-8
, and I'm guessing the problem lies in my search criteria.
Is there a simple solution, for one who knows next to nothing about grep
?
ISO-8859-1
works for me, you can check this online