Operating System - HP-UX
1757898 Members
2672 Online
108866 Solutions
New Discussion юеВ

help using find to display directory & modify date

 
SOLVED
Go to solution
Renda Skandier
Frequent Advisor

help using find to display directory & modify date

Hi,
I use the command:
find . -name ttyscale.c -print

to find all occurances of the file ttyscale.c but would like a way to list the last modified date as well. this shows me the directories the file exists in but no date
thanks
5 REPLIES 5
Stefan Farrelly
Honored Contributor
Solution

Re: help using find to display directory & modify date


find . -name ttyscale.c -print -exec ls -ltr {} \;
Im from Palmerston North, New Zealand, but somehow ended up in London...
Thomas Schler_1
Trusted Contributor

Re: help using find to display directory & modify date

Another possibility:

ll `find . -name ttyscale.c`
no users -- no problems
Jeff Schussele
Honored Contributor

Re: help using find to display directory & modify date

Hi,

find . -name ttyscale.c -exec ll {} \;

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Heiner E. Lennackers
Respected Contributor

Re: help using find to display directory & modify date

My vote:

find . -name ttyscale.c | xargs ls -ltr

Heiner
if this makes any sense to you, you have a BIG problem
Renda Skandier
Frequent Advisor

Re: help using find to display directory & modify date

thank you!
i knew it was something simple but now I have a few new ways to go about my finds