News for hackers. Stuff that matters.
Re:Ask HN: What is your favourite algorithm? by mistabrando on Saturday September 07, 2013 @02:00PM (#6345853)
Sleepsort of course

#!/bin/bash

function f() {

    sleep "$1"
    echo "$1"
}

while [ -n "$1" ]

do

    f "$1" &
    shift
done

wait

There are no comments on this comment yet.