OhioUniversityScripps/scripps_college_scripts — comment on commit 82607da498a48afc7b77f7fa79a567460afe257d
File: edu.ohio.scripps.houdini_licenser/edu.ohio.scripps.houdini_licenser-boot.sh line 12
By smokris:

Instead, I'd suggest the simpler and more robust:

currentMonth=`date +%m`
fileMonth=`stat -f %Sc -t %m $LICENSE_FILE_LOC`

(i.e., get the information directly if you can, rather than parsing the output of other methods (whose output format could change depending on environment or version changes))