Skip to content

Instantly share code, notes, and snippets.

@edorian
Created September 19, 2012 21:57
Show Gist options
  • Save edorian/3752571 to your computer and use it in GitHub Desktop.
Save edorian/3752571 to your computer and use it in GitHub Desktop.
Fun
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done
wait
@haraldschilly
Copy link

One of the crazy "linear/predictive" sort algorithms :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment