cd $dir file=$dir/$(ls +([[:digit:]]) | awk "\$0 <= $id" | sort -rn | head -1)