|
| From: | Michael Stone |
| Subject: | Re: quarter code for date |
| Date: | Thu, 6 Oct 2016 08:03:12 -0400 |
| User-agent: | Mutt/1.5.23 (2014-03-12) |
On Thu, Oct 06, 2016 at 12:53:41PM +0100, PƔdraig Brady wrote:
It's not that awkward to get the quarter number: $(( ($(date +%-m)-1)/3+1 ))
^^^ this is how you can tell someone's been doing shell scripting too long :-D
Mike Stone
| [Prev in Thread] | Current Thread | [Next in Thread] |