Find duplicate lines from lines of text in the Clipboard and copy only one instance of each duplicate line (stripping non-duplicates) back to the Clipboard (output is sorted):
pbpaste | sort | uniq -d | pbcopy
Strip duplicate lines from lines of text in the Clipboard and copy only one instance of each line (stripping duplicates entirely) back to the Clipboard (output is sorted):
pbpaste | tidy | pbcopy
-- DetlevLengsfeld 2010-01-08 12:46:13
MacOSX/OSX Setup | oneliner (last edited 2010-01-08 12:46:13 by DetlevLengsfeld)