#!/bin/sh if [ -x ${HOME}/private/bin/find-latest ]; then ${HOME}/private/bin/find-latest "$@" else echo "find-latest has moved to the ots-tools repository:" echo "" echo " https://github.com/OpenTechStrategies/ots-tools/blob/master/find-latest" echo "" # https://stackoverflow.com/questions/4561895/\ # how-to-recursively-find-the-latest-modified-file-in-a-directory echo "Or you could just run something like this:" echo "" echo " find . -type f -printf '%T@ %p\\\\n' | sort -n | tail -10" echo "" echo "(perhaps with ' | cut -f2- -d\" \"' at the end)." fi