getting date 9 days ago in 10.4
I need to move some files around using the dates that are embedded in the file name, and the unix date command didn't seem to have the -v option back in ancient days of yore. For example, if you run this command in any version of os x from Snow Leopard through Yosemite
ls -l *_`date -v-10d +%m%d`_*.pdf
it finds all of the pdf files with _0510_ in the middle of the file name (or gives a No such file or directory message with the if there aren't any). But when you run it in 10.4, you get:
bash-4.3# ls -l *_`date +%m%d`_*.pdf
ls: *_0520_*.pdf: No such file or directory
bash-4.3# ls -l *_`date -v-10d +%m%d`_*.pdf
date: illegal option -- v
usage: date [-nu] [-r seconds] [+format]
date [[[[[cc]yy]mm]dd]hh]mm[.ss]
ls: *__*.pdf: No such file or directory
Tiger does understand the date +%m%d command, so I can get the files with today's date embedded in them, but try to add the -v option to the date command, and it doesn't work.
So in 10.4 is there any way to get a date in the past/future?