#!/bin/bash [[ -z $1 ]] && echo path? && exit 1 find $1 -type f -exec stat --format '%Y :%y %n' "{}" \; | grep -v \.git/ | sort -nr | cut -d: -f2- | head #find $1 -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head # https://stackoverflow.com/questions/5566310/how-to-recursively-find-and-list-the-latest-modified-files-in-a-directory-with-s