Pario TechnoBlob
About
Posts
Tag: cal bash
Print last Sunday of month
This is a bash oneliner to get the date of the last Sunday in the month, nice to have if you cannot figure out an easy solution in crontab. # cal -m | awk ‘{print $7}’ | grep...