Skip to content

Instantly share code, notes, and snippets.

@pahaz pahaz/
Last active Jul 17, 2016

What would you like to do?
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))"

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.