ALT + F1
Photos, thoughts, and geeky Linux stuff @vargasmas.com
Loading...
Scripting: Is today the last day of the month?
Timestamp:
2/19/2012 10:27:00 PM
Here's an easy way to check. Very useful when scripting an action (like a backup for example) that needs to happen on the last day of the month.
[ `date --date='next day' +'%B'` == `date +'%B'` ] || echo 'end of month' && echo 'not end of month'
Newer Post
Older Post
Home