That's done it. Thank you.
On Friday 08 July 2011 11:45:13 Simon Ransome wrote:
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.
Stuart Bailey BSc (hons) CEng CITP MBCS LinuSoft (Managing Director) Linux Specialist & Software Developer ~~~~~~~~~~~~~~~~~~~~~~~ Phone: (0845) 658 3563 Direct: +44 (0) 1953 878162 Fax: +44 (0) 1603 858583 ~~~~~~~~~~~~~~~~~~~~~~~ http://www.linusoft.co.uk
__________ Information from ESET Mail Security, version of virus signature database 6276 (20110708) __________
The message was checked by ESET Mail Security. http://www.eset.com