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
Try.
#!/bin/sh DaySuffix() { case `date +%d` in 1|21|31) echo "st";; 2|22) echo "nd";; 3|23) echo "rd";; *) echo "th";; esac } date "+%A %d`DaySuffix` %B %Y"