The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

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 01:01 PM
Processing a log file based on date/time input and the date/time on the log file primp Shell Programming and Scripting 4 03-16-2008 08:23 AM
Move A File With Same Date,don't Change The Desitination Dir Date jee.ku2 UNIX for Dummies Questions & Answers 1 01-09-2008 10:42 AM
Changing Creation Date to a Prespecified Date of a File In Unix monkfan UNIX for Dummies Questions & Answers 4 11-28-2006 04:15 AM
compare today's date with date in a file siog UNIX for Dummies Questions & Answers 4 10-04-2006 08:55 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-25-2006
Registered User
 

Join Date: Aug 2006
Posts: 48
file date

Hi All,
Is it possible to get teh julian date a file was created(modified) ? For example, I could get the julian date of today by date +%j which gives 237.The last day of the year is 365. I want to specify a condition in a script, if the sysdate(julian) minus julian date of FOLDER>14, then do something...
How do I do this?


In short,I just want to check if the difference between system date and the date of folder modification is greater than 14.Any other approach is welcome.

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 08-25-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Which UNIX? Linux has date arithmetic embedded in the date command.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:14 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