INNER CODE UNIT · Shell
year
edoardottt/missing-cve-nuclei-templates · scripts/check-missing-templates.sh:205
year=${current_year: -4}
echo "https://github.com/trickest/cve/blob/main/$year/$cve_file"
if [[ ! -z "$outputfile" ]]; then
echo -en "[ ${cve} ] " >> $outputfile
echo -n "[ $missing_to_print ] " >> $outputfile
echo "https://github.com/trickest/cve/blob/main/$year/$cve_file" >> $outputfile
fi
if [[ ! -z "$outputjsonfile" ]]; then
description=$(cat ${CVE_REPO}/${year}/${cve_file} | \
sed -n '/### Description/,/### POC/p' | \
sed -e '/### Description/,+1d; /### POC/d' | \
sed '$ d' | \
sed 's/\\/\\\\/g' | \
tr -s '\n\r ' ' ')
jsondata=`jq \