INNER CODE UNIT · Shell
description
edoardottt/missing-cve-nuclei-templates · scripts/check-missing-templates.sh:215
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 \
-n \
--arg cve "${cve}" \
--arg category "${missing_to_print}" \
--arg url "https://github.com/trickest/cve/blob/main/$year/$cve_file" \
--arg description "${description}" \
'{
"cve": $cve,
"category": $category,
"url": $url,
"description": $description,