Go to the buffer, select everything with Cx h , then do M-| grep -o "\\\\u[0-9]*" | sort | uniq M-| grep -o "\\\\u[0-9]*" | sort | uniq M-| grep -o "\\\\u[0-9]*" | sort | uniq (this is done by shell-command-on-region ). The output will go to *Shell Command Output* , which will not be displayed if the output is not long enough, but it is always created, and you can switch to it independently.
There is also occur ( Ms o ).
source share