1 2 3 4 5
#!/bin/bash set -ex version=`pkg-config --modversion libyang` echo "$version" | grep '2\.[0-9.]\+'