3 ms·
| sort | uniq > super.dict why not | sort -u > super.dict
by SixSigma 12y ago
| sort | uniq > super.dict
why not
| sort -u > super.dict
- bdb 12y agoMuscle memory.
- Gravityloss 12y agoEasier to remember? You have to remember switches for every command, while commands like sort only need to be remembered once.
- robertgraham 12y ago'cause I'm a Windows user who don't know the advanced flags of Unix command-line tools
- dpritchett 12y agoCode is not the only sort of thing with an optimal chunk size. Languages and APIs (such as sets of library or system calls) run up against the same sorts of human cognitive constraints that produce Hatton's U-curve. Accordingly, Unix programmers have learned to think very hard about two other properties when designing APIs, command sets, protocols, and other ways to make computers do tricks: compactness and orthogonality. http://www.catb.org/esr/writings/taoup/html/ch04s02.html http://www.catb.org/esr/writings/taoup/html/ch04s02.html