[HPADM] Interactive Script help

From: brian irvin (brian944us@yahoo.com)
Date: Wed Jul 06 2005 - 23:22:34 EDT


This the script to delete files older than 240 days.
 
#!/usr/bin/sh
find /tmp -mtime +240 -exec rm {} \;

Here i have to pass the days value interactively (the
script should take the value from the stdin and act
accordingly). Could someone point me how to do it?

Many Thanks

Brian.

                
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.
http://auctions.yahoo.com/

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:48 EDT