You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UpdateCopyright.sh 245B

12345678
  1. #!/bin/sh
  2. # Update Copyright headers in all files.
  3. THISYEAR=`date +%Y`
  4. THISYEAR=$((${THISYEAR} + 1))
  5. find . -regextype posix-egrep -iregex '.*\.(java|sh|php|xml)$' -exec sed -i 's/\(Copyright.*\)2006-20[0-9][0-9]/\12006-'${THISYEAR}'/' {} \;