I'm getting syntax error, unexpected $EOF when adding this function to a Wordpress functions file. See anything?
function get_saturation($atts) {
<?php $sws = exec("awk -F\",\" '{if(NR==2) printf(\"\%.1f \
\",($10/8.4)*100 )}' https://website.org/data/lastrec.csv", $retval);
echo $sws . " percent saturation<br>"; ?>
}
add_shortcode('saturation', 'get_saturation');