Last active
July 17, 2016 06:59
-
-
Save pahaz/57447570474947c6db4331a8efff512c to your computer and use it in GitHub Desktop.
Simple python v3 inline script for generating next version number!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 1.0.0 | python -c "v = 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
Python2 version:
echo 1.0.0 | python -c "v = raw_input().strip().split('.'); v[-1] = str(int(v[-1]) + 1); print('.'.join(v))"