Last active
May 11, 2016 20:38
-
-
Save Rican7/250c138e5f44274019ada3fa0b884358 to your computer and use it in GitHub Desktop.
Find's changed files that contain an old copyright date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using GNU `grep` | |
git diff --diff-filter=ACMRTUXB --name-only branch_to_compare | xargs grep -l -P "copyright(\s+)(?!("$(date '+%Y')"))[0-9]{4}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment