I have a bunch of (rather large i.e. >100MB) comma separated files which needs sorting on 4 processor box with SunOS 5.10
Sort appears to run rather slow (minutes)
I am wondering if there is any way to speed things up, for example making use of more than one processor/core or perhaps by just using some clever sort options?
PS: I am using the entire line as a key so just sort filename > filename.sorted
Here is the script I wrote for this purpose. On a 4 processor machine it improved the sort performance by 100% ! (Thanks Bash for the tip!)
See: need high performance /bin/sort; any suggestions?
I found this script a while ago: distsort.sh
I don't remember what I used it for or if it worked, so let me know if it works for you.