Skip to content

Instantly share code, notes, and snippets.

View john-kurkowski's full-sized avatar

John Kurkowski john-kurkowski

View GitHub Profile
@john-kurkowski
john-kurkowski / psort.sh
Created March 23, 2011 06:23
Parallel Unix `sort` comparison
#!/bin/bash
# Compare Mac OS X 10.6's `sort` to latest GNU Coreutils `sort` which parallelizes by default.
# More info: http://www.cs.ucla.edu/classes/fall10/cs35L/assign/assign9.html
integers=10000000
file=`eval echo "~/Documents/integers1.txt"`
echo "Generating $integers integers..."
if [ ! -f $file ]; then
for i in $(eval echo "{1..$integers}"); do