Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check date/time variable - korn shell script. 2

Status
Not open for further replies.

Jumbo

Technical User
Aug 25, 2000
5
US
I would like to remove files more than 24 hrs old from a directory. Does anyone know the easiest way to do that ?

Jumbo..
 
hi jumbo,

i use,

find . -atime +1 -exec rm \-i {} \;

hope it helps,

afaik,
shail
 
Thanks.
I'm struggling with the unix syntax, so your assistance is a great help ! Got some books from O'Reilly coming soon, hopefully they will help as well.

Jumbo....
 
hi jumbo,

i think with books its ok.. it all looks too easy with books...
it takes some time, but if u get the hang of man pages on unix its gr8 programming like that..

since u r spending on getting books i thought i might put in my little suggestion...

afaik,
shail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top