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

123456789
  1. #!/bin/sh
  2. # Update Copyright headers in all files.
  3. OLD="2006-2008"
  4. NEW="2006-2009"
  5. grep -iR "${OLD}" ./* | grep -v /.svn/ | grep -v "Binary file" | grep -v UpdateCopyright.sh | grep -v update.sh | awk -F: '{print "echo \"Updating \\\""$1"\\\"\"\nsed -i \"s/'${OLD}'/'${NEW}'/g\" \""$1"\""}' > update.sh
  6. sh update.sh
  7. rm update.sh