hey i am a bit stuck here. i just started work experience and i need to create a simple script which delete all files in a specify folder which are older then 2 days.
i tried but it never works!!! anyone! i dont know much but unix since i mostly work on NT here but i dont wanna disapoint my boss
Make a search on this forum, it will be greatly rewarding...
Check the man pages for find command or look in the examples at this url - http://docs.hp.com/hpux/onlinedocs/B3921-90010/00/01/107-con.html
see if
find yourpath -type f -atime +2 -print
prints the files you want and if it does use this to delete the files...
find yourpath -type f -atime +2 -print | xargs rm -f
Cheers!
Vishnu.