Skip to content

Instantly share code, notes, and snippets.

@yratof
Created December 6, 2017 13:46
Show Gist options
  • Save yratof/73f43722fc7492bdce18d02b6f07774b to your computer and use it in GitHub Desktop.
Save yratof/73f43722fc7492bdce18d02b6f07774b to your computer and use it in GitHub Desktop.
Get a list of all the files that have changed in the last 14 days
# Find all files changed since yesterday
find ./wp-content/ -mtime -14 -not -path "*/.git/*" \
-not -path "*.scssc" \
-not -path "*/uploads/*" \
-not -path "*/.sass-cache/*" \
-not -path "*/vendor/*" -ls;
# Check if .css files have changed recently.
find ./wp-content/themes/ -name "*.css" -mtime -14 \
-not -path "*/node_modules/*" -ls;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment