I'm trying to use find and ls to sort files based on date, however, it's not doing anything. Here's my command:
find ./.BUBackups -name "test*" -exec ls -t {} \;
I also tried:
find ./.BUBackups -name "test*" -exec ls -lt {} \;
In testing, -t is simply doing -nothing-. -l works, but if I input -t it acts as if I didn't put it in at all. However, ls -t or ls -lt works perfectly fine when I'm not running it through exec, in others words simply typing ls -t works
Is this a glitch? or am I doing something wrong?