![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Which UNIX? Linux has date arithmetic embedded in the date command.
|
|||
| Google The UNIX and Linux Forums |