inc_version() {
	awk -F. -vOFS=. '{ $ver++; while(ver++<NF) $ver=0; print $0 }' ver=$1
}

https://gir.st/blog/inc-version.htm

Was this post helpful?