Sublime Forum

How to increment document version at save

#1

I’m trying to find a good way to increment a comment version line on save. Any ideas? For example the first 2 lines look like this:

#!/bin/bash
# Version 1.50

So on save I want #Version 1.50 to be 1.51.

Thanks,
Aaron

0 Likes