Skip to content

Instantly share code, notes, and snippets.

@acharlieh
Created March 20, 2015 13:33
Show Gist options
  • Save acharlieh/36082aefcd60a9029eb7 to your computer and use it in GitHub Desktop.
Save acharlieh/36082aefcd60a9029eb7 to your computer and use it in GitHub Desktop.
Updating versions script
perl -ne " if (/^(version\s+'\d+\.\d+\.)(\d+)('.*)/) { \$fix = \$2 + 1; print \"\$1\$fix\$3\n\" } else { print }" metadata.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment