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
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
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
Summary: Hi, I'm a newbie to scripting in Unix and I need help with the following. I want to write a script that would retrieve the creation date/time of a file and compare that to the current date/time to det...
Summary: GISmapper: I still learning sed, but this might work: sed '$a\ '"$(printf '\012')"' ' pipe your unzip command to the stub sed command above. The $a\ is sed's append to the end of file syntax. I'm ap...