summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-01-06 23:20:17 -0800
committerFuwn <[email protected]>2025-01-06 23:20:17 -0800
commit548a8d6f21867f3bc4be6f3694bf5d6728691301 (patch)
tree95ac6709748e2acb61573d7b43344a26d534b336 /scripts
parentnara: add tealdeer (diff)
downloadnixos-config-548a8d6f21867f3bc4be6f3694bf5d6728691301.tar.xz
nixos-config-548a8d6f21867f3bc4be6f3694bf5d6728691301.zip
scripts: macos system diff tool for etc
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/changed_macos_etc.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/changed_macos_etc.sh b/scripts/changed_macos_etc.sh
new file mode 100755
index 0000000..3233f74
--- /dev/null
+++ b/scripts/changed_macos_etc.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+WHEN=${1:-"2024-12-07 00:11:55"}
+WHERE=${2:-"/private/etc"}
+FILES=$(find "${WHERE}" -type f -newermt "${WHEN}" -exec stat -f "%Sm %N" -t "%Y-%m-%d %H:%M:%S" {} +)
+
+echo "${FILES}"
+echo "${FILES}" | wc -l