On 08/07/11 11:28, Stuart Bailey wrote:
Hello,
I'm trying to search for a file name by pattern that will output the full path and timestamps.
find . -name "*.png" -printf "%p \t %t\n"
gives (for example):
./installer/ldpi/icon.png Wed May 4 11:17:18.0000000000 2011 ./installer/ldpi/settings.png Thu Apr 21 14:39:30.0000000000 2011 ./installer/ldpi/arrow.png Wed Apr 27 15:53:38.0000000000 2011
seems to do what you want (I think there's more granularity in -printf if you want to format the timestamp a different way).
Regards, Simon
I've tried using ls -Rl | grep "^." to show all the directories. but then I need to show all files within those directories that match my pattern, eg *abc.png
Can I do this with my reg exp? Find does not give the timestamps.