Computing.Net > Forums > Unix > creation date comparison of files

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.

creation date comparison of files

Reply to Message Icon

Name: monish_career
Date: November 10, 2005 at 05:10:27 Pacific
OS: windows xp
CPU/Ram: p-4/512
Comment:

hello friends,
its really urgent. i want to capture the creation dates of the files on my disk and then delete the files which are older by 3 days using unix scripting. i am not able to have any clue how to go bout the date capturing

hi all this is ur friend



Sponsored Link
Ads by Google

Response Number 1
Name: vicchai
Date: November 10, 2005 at 05:59:28 Pacific
Reply:

Try this:

find /go/to/the/directory -mtime +3 | xargs rm


0

Response Number 2
Name: monish_career
Date: November 11, 2005 at 03:49:54 Pacific
Reply:

thanx for the reply but can find the script that how should i connect to the ftp server and then delete the files which are older by 3 days. i need this urgently coz there is a dire space crunch out on the ftp server and we gotto carry on the deployment as soon as possible. anyways thanx a lot for ur response as it solved half of my problem

hi all this is ur friend


0

Sponsored Link
Ads by Google
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: creation date comparison of files

file creation date www.computing.net/answers/unix/file-creation-date/7242.html

Comparing time/date of a file... www.computing.net/answers/unix/comparing-timedate-of-a-file/3711.html

sed dropping last line of file www.computing.net/answers/unix/sed-dropping-last-line-of-file/5125.html