Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Last active September 11, 2023 12:27
Show Gist options
  • Save ErykDarnowski/d78abe16674caa805d5873bd413d9c9c to your computer and use it in GitHub Desktop.
Save ErykDarnowski/d78abe16674caa805d5873bd413d9c9c to your computer and use it in GitHub Desktop.
Find pattern in `config.yaml` files (recursively) and check when they were last changed according to system / to git

Find pattern in config.yaml files (recursively) and check when they were last changed according to system / to git

# git
grep -rl --include="config.yaml" "website:" | xargs -n1 git log -1 --pretty="format:%ci"

# system
grep -rl --include="config.yaml" "website:" | xargs stat -c "%y" {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment