Sort with uniq comma separated items with POSIX utils.
Suppose you have string:
str="item4, item2, item3, item2, ..."
and want alphabetically sort items in shell script.
it/security/free/math/sci/music
English version of brain-break-ru.blogspot.com. Enjoy!
C-x sort-lines
.
Sort and uniquify lines:
C-u M-| sort -u RET
With transient-mark-mode
and delete-selection-mode
enabled:
M-| sort -u RET