Skip to content

Instantly share code, notes, and snippets.

@mzaksana
Created September 12, 2025 21:16
Show Gist options
  • Select an option

  • Save mzaksana/699f22f75c264e2c2f09b9aabbb914f5 to your computer and use it in GitHub Desktop.

Select an option

Save mzaksana/699f22f75c264e2c2f09b9aabbb914f5 to your computer and use it in GitHub Desktop.

Revisions

  1. mzaksana created this gist Sep 12, 2025.
    6 changes: 6 additions & 0 deletions total-n-newest-files.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    watch -n 2 '
    echo "Total files: $(find src -type f | wc -l)"
    echo
    echo "Newest 10 files:"
    find src -type f -exec stat -f "%Sm %z %N" {} + | sort -r | head -n 10
    '