The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > 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
Perl: Extracting date from file name and comparing with current date MKNENI Shell Programming and Scripting 4 03-26-2008 12:01 PM
how to check whether the given file is 5 weeks older than current date risshanth Shell Programming and Scripting 1 10-29-2007 12:53 AM
File date vs Current date trexlim Shell Programming and Scripting 4 05-04-2007 06:35 PM
how to give current date in file name? simurg11 UNIX for Dummies Questions & Answers 3 05-10-2005 06:09 AM
create directory named current date flowrats UNIX for Dummies Questions & Answers 2 07-30-2002 08:26 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2007
Registered User
 

Join Date: Dec 2007
Posts: 1
check the current date file in directory

Hi,

I am making a script which check the directory and if there is today date file, it is showing message file is there for today date .

1) filename is accessline.win.$timestamp

example ;-accessline.win.200712211004

2) On monday i have recieved two file in this directory with current date and yesterday date and remaining day i have recieved only one file in this directory which is for current date.

3) everytime filename is same but only timesatmp is different.

I shall be very thankful to all of us , if anyone can sortout this problem.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-21-2007
cassj's Avatar
Supporter
 

Join Date: Jul 2003
Location: Interweb
Posts: 106
Please post your script. It will make it easier to understand your problem.

Cheers...Cassj
Reply With Quote
  #3 (permalink)  
Old 01-04-2008
joeyg's Avatar
premier etoile de match
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 535
files modified within 1 day

> find -mtime -1

This will show files modified within the past day in the current directory. There is also a -ctime and -atime parameters available.

Normally users think of this in the opposite logic of finding files not modified in 10 days (for archive, etc...), and that would be
> find -mtime +10
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0