Does:
sort < foo | uniq -u
not work with named pipes? sort < foo | uniq -u
not work with named pipes?The advantage to
cat foo | sort | uniq -u
is that it is (marginally) easier to drop in another filter in front of sort. <foo sort | uniq -u
(redirections can be at the beginning too.)Also: sort -u instead of sort|uniq.