#!/bin/bash packageName=`echo $1` cveID=`echo $2` cvepatch=`rpm -qa $packageName --changelog | grep --color=never -oE $cveID` echo $cvepatch