Skip to content

Instantly share code, notes, and snippets.

@ikatson
Created July 13, 2014 17:38
Show Gist options
  • Save ikatson/0d586999cf102b10a167 to your computer and use it in GitHub Desktop.
Save ikatson/0d586999cf102b10a167 to your computer and use it in GitHub Desktop.
Find all non-automatic migrations
find . | grep 'migrations.*py$' | grep -v '__init__' | while read file; do grep -E 'Adding|Deleting|Changing' "$file" > /dev/null || echo "$file"; done
# or just
find . | grep 'migrations.*py$' | grep -v -E '__init__|auto|initial'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment