Last active
January 22, 2025 19:20
Revisions
-
brwyatt revised this gist
Aug 23, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ fi # Based on https://stackoverflow.com/questions/10575665/linux-find-command-find-10-latest-files-recursively-regardless-of-time-span # with additions to return only the date of the newest file find "${dir}" -type f -printf "%C@ %p\n" | sort -rn | head -n 1 | cut -d' ' -f2 | xargs ls -l -t -
brwyatt revised this gist
Dec 29, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,6 @@ else dir="${1}" fi # Based on https://stackoverflow.com/questions/10575665/linux-find-command-find-10-latest-files-recursively-regardless-of-time-span # with additions to return only the date of the newest file find "${dir}" -type f -printf "%C@ %p\n" | sort -rn | head -n 1 | cut -d' ' -f2 | xargs ls -l | cut -d' ' -f6,7,8 -
brwyatt created this gist
Dec 29, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/bash if [[ "x${1}" == "x" ]]; then dir="." else dir="${1}" fi find "${dir}" -type f -printf "%C@ %p\n" | sort -rn | head -n 1 | cut -d' ' -f2 | xargs ls -l | cut -d' ' -f6,7,8