How to increment version number in a shell script?

前端 未结 11 2081
执念已碎
执念已碎 2020-11-29 23:47

The following simple version control script is meant to find the last version number of a given file, increment it, run a given command with the newly created file (e.g., ed

11条回答
  •  旧时难觅i
    2020-11-30 00:31

    Another option is to use Python. I think this way it a bit more readable than using plain Bash or Perl.

    function increase_version() {
        python - "$1" <

提交回复
热议问题