Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.
I want to count all the lines that begin with a valid date. This code works if a line begins with a valid date but if it does not then it returns an error.
#!/bin/bash NOW=$( date +"%s" ) while read MONTH DAY TIME DATA do THEN=$( date -d "$MONTH $DAY $TIME" +"%s" ) COUNT=$((COUNT+1)) done < $1 echo $COUNT