#!/bin/bash URL="https://sourceware.org/elfutils/" # Get version number from tag name VERSION=$(curl -s -L "$URL" | grep -A1 'release notes:' | grep -o -E '([0-9]\.[0-9]*)') echo "$VERSION"