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 351B

12345678910
  1. #!/bin/sh
  2. # Update Copyright headers in all files.
  3. THISYEAR=`date +%Y`
  4. OLD="2006-"$((${THISYEAR} - 1))
  5. NEW="2006-"${THISYEAR}
  6. grep -iRI "${OLD}" ./* | grep -v /.git/ | grep -v UpdateCopyright.sh | grep -v update.sh | awk -F: '{print "echo \"Updating \\\""$1"\\\"\"\nsed -i \"s/'${OLD}'/'${NEW}'/g\" \""$1"\""}' > update.sh
  7. sh update.sh
  8. rm update.sh