#!/bin/sh fd -d1 . $@ | sort -R | head -n 1