The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find files with specific date and time itik AIX 3 01-18-2008 01:21 PM
How to list files with specific created date Draculla Filesystems, Disks and Memory 2 05-04-2007 12:45 AM
List files created between specific date and time jazjit Shell Programming and Scripting 3 04-27-2007 02:19 AM
List all files that contain a specific directory Sat510 SUN Solaris 7 04-17-2007 11:57 AM
List specific files from directories Filippo Shell Programming and Scripting 4 02-17-2005 03:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-15-2006
B14speedfreak B14speedfreak is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 55
Exclamation List files with a specific date...

Hi all,

thanks in advance for reading and anyposts...

I was wondering if its possible to find all files in a directory with a specific date.

I know I can do:

Quote:
find [path] -mtime [int]
but that will only give a list of files greater than todays date... Any ideas?

Thanks,

Marky Mark...
  #2 (permalink)  
Old 06-15-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,245
try this thread it is working with two dates which is more than you want, but you should eb able to figure out the changes needed.
  #3 (permalink)  
Old 06-15-2006
B14speedfreak B14speedfreak is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 55
Lightbulb

Thanks that looks useful, I post what I come up with once I have got it finished...
  #4 (permalink)  
Old 06-15-2006
B14speedfreak B14speedfreak is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 55
Lightbulb

Ok I am going to have to get it to execute some commands after, but this is what my script will look like:

Quote:
#!/bin/sh

olddate="200606132359"

newdate="200606150000"

touch -t $olddate ./tmpoldfile
touch -t $newdate ./tmpnewfile

find /u02/oracle/titandata/ -type f -newer ./tmpoldfile ! -newer ./tmpnewfile -ls
eventually I intend to use the -exec rm{} \; command at the end of the statment. Essentially this will enable me to get rid of file which reside in a specific time frame....

...thanks for all your help...

B14... aka.... marky mark...
  #5 (permalink)  
Old 06-15-2006
fasajjad fasajjad is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 1
what you can do is
ls -ltr |grep 'Jun 15' (for todays files) take care of the extra space when using 1 digit

ls -ltr |grep 'Jun 1'
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0