On Sun, 25 Jun 2000, Geoff wrote:
> i need a script that will run everyday at midnight (thru cron i know, this
> isnt a problem), and go down a specific dir that is dated yesterday (ie if
> today is july 4, yesterdays dir would be 0703) and its subdirs and chmod all
> files of a specific extension to 644. if someone could point me toward a
> scripting resource or give me some help id be much obliged... my experience
> with scripting is basically putting a few oft used commands into one script,
> nothing fancy.
find `date +%m%d --date 'yesterday'` -name "*.ext" -type f -exec chmod 644
{} \;
Frank
>
> thanks,
> geoff
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
>
HI! I'm a .signature virus! cp me into your .signature file to help me spread!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs