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
#!/bin/ksh DateSuffix() { if [ "$1" -eq "1" ] || [ "$1" -eq "21" ] || [ "$1" -eq "31" ] then echo 'st' elif [ "$1" -eq "2" ] || [ "$1" -eq "22" ] then echo 'nd' elif [ "$1" -eq "3" ] [ "$1" -eq "23" ] then echo 'rd' else echo 'th' fi } date "+%A %d`DateSuffix` %B %Y"