[erlang-questions] os:cmd performance
Mon Jul 29 16:41:15 CEST 2013
> os:cmd("cat /tmp/huge_file | grep 'some_regexp' | sort -u >
Never understood why so many people do cat file | something instead of
something <file .
(At least SunOS's cat has been known to mmap instead so would no doubt
differ in chunkiness of reads.)
grep 'some_regexp' /tmp/huge_file or even grep 'some_regexp' </tmp/huge_file
Doesn't explain your discrepancy though.
More information about the erlang-questions