Skip to content

Instantly share code, notes, and snippets.

@pahaz
Last active July 17, 2016 06:59
Show Gist options
  • Save pahaz/57447570474947c6db4331a8efff512c to your computer and use it in GitHub Desktop.
Save pahaz/57447570474947c6db4331a8efff512c to your computer and use it in GitHub Desktop.
Simple python v3 inline script for generating next version number!
echo 1.0.0 | python -c "v = input().strip().split('.'); v[-1] = str(int(v[-1]) + 1); print('.'.join(v))"
@pahaz
Copy link
Author

pahaz commented Jul 17, 2016

Python2 version: echo 1.0.0 | python -c "v = raw_input().strip().split('.'); v[-1] = str(int(v[-1]) + 1); print('.'.join(v))"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment