Last Sunday of the Month

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



RHEL ES 3
I can't seem to find this about the date command, but that doesn't mean it can't do it. I have overlooked things in the past.


1. Can the date command give you a date for the Last Sunday of a month? Or do I have to go through a loop to check each day of the month to see if it is the last Sunday of the month?

2. I can do a date --date="last sunday". Is there a way to tell it to give me the date of 4 Sundays ago? I tried date --date="4 sundays ago" and that didn't do it.

Thanks
Steve

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux