Formatting the date in unix to include suffix on day (st, nd, rd and th)
- by skymook
How can I add the suffix on the day number of a unix date?
I'll explain. I have a TextMate bundle snippit that writes out today's date. It uses unix date and formatting. Here is the code:
`date +%A` `date +%d` `date +%B` `date +%Y`
It outputs:
Monday 22 March 2010
I would like to add the suffix to the day (st, nd, rd and th) like so:
Monday…