Comment

Comment by mistabrando

Sleepsort of course

#!/bin/bash

function f() {

    sleep "$1"
    echo "$1"
}

while [ -n "$1" ]

do

    f "$1" &
    shift
done

wait

parent mistabrando 13 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton