Computing.Net > Forums > Unix > datediff in ksh

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

datediff in ksh

Reply to Message Icon

Name: vande
Date: April 10, 2008 at 08:25:41 Pacific
OS: Windows xp, Windows
CPU/Ram: 2.4 quad core Intel
Product: Dell, Dell, Dell
Comment:

Ok im doing this in ksh 1st off
i have an input file that gets read it has the fields f or d (file or directory) path and filename all seperated by whitespace. Im gonna add on to this ttl (Time to live). Now i want to be able to somehow do an ls -? <---dash something not sure what. So i can see the files currently in there and somehow see the creation date of these files then based off the creation date and the current date i want to see the number between the two almost like a datediff then that number will be identified by a variable for example x then i will simply do if [$x ge $ttl] then remove file what would i want to look into doing

Learning in progress..........



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: April 10, 2008 at 10:39:32 Pacific
Reply:

Date arithmetic isTake a look at this link:

http://www.computing.net/unix/wwwbo...


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: datediff in ksh

no. of instances of a script in ksh www.computing.net/answers/unix/no-of-instances-of-a-script-in-ksh/6739.html

File opening and reading in KSH www.computing.net/answers/unix/file-opening-and-reading-in-ksh/3683.html

Send email with attachment in ksh www.computing.net/answers/unix/send-email-with-attachment-in-ksh/8004.html