#!/bin/bash ## increment LT_VERSION in ../configure.ac f=../configure.ac grep LT_VERSION $f i=$(awk '/LT_VERSION/ {n=gensub(/.*:([0-9]+):.*/,"\\1",1);print n}' $f) ((i++)) ed $f <