The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File timestamp stevefox UNIX for Dummies Questions & Answers 4 12-24-2007 10:14 PM
change timestamp of file isingh786 HP-UX 1 05-15-2006 10:56 AM
Create file with old timestamp Kris_Kart_101 UNIX for Dummies Questions & Answers 2 10-14-2005 10:18 AM
changing timestamp of a file krishan SUN Solaris 1 05-23-2005 07:50 AM
putting a timestamp in a file rocker40 UNIX for Dummies Questions & Answers 2 10-22-2003 08:56 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-28-2003
Registered User
 

Join Date: Oct 2003
Location: India
Posts: 3
Post timestamp of file

Hi,
I need to recursively find alll files generated as of today. I was able to use find and ls -l to do that but the problem i am facing is there are around 48000 subdirectories it needs to search in.
Any help is appreciated.

krisdhar
Forum Sponsor
  #2  
Old 10-28-2003
Registered User
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
pls. post how you are currently doing it. then we can possibly suggest improvement.

Regards,
Vishnu
  #3  
Old 10-28-2003
Registered User
 

Join Date: Oct 2003
Location: India
Posts: 3
Hi,
It is part of a script but essentially i was planning to use
ls -l `find ./ -name '*.jpg'` |grep 'Oct 28'. This is getting me the required output but if i try with all the sub directories then it gives error too many parameters
  #4  
Old 10-28-2003
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
Try...

Code:
touch `date '+%Y%m%d0000'` /tmp/flagfile
find . -type f -newer /tmp/flagfile -print|xargs ls -l
  #5  
Old 10-28-2003
Registered User
 

Join Date: Oct 2003
Location: India
Posts: 3
Smile

Hi,
Seems to be working ok with the last command you gave.
Thanks for the help. I am not sure if my customer will be happy with the time it took though.

krisdhar
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0