Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2011 10:37:30 -0600 (CST)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: script help
Message-ID:  <201102161637.p1GGbUiC004819@mail.r-bonomi.com>
In-Reply-To: <4D5BF1AD.9010109@bah.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help

> Date: Wed, 16 Feb 2011 16:47:57 +0100
> From: Bernt Hansson <bernt@bah.homeip.net>
> Subject: Re: script help
>
> 2011-02-14 23:34, Jack L. Stone skrev:
> > Hello folks:
>
> Hello!
>
> > No doubt this will be easy for those with scritping abilities.
>
> > # find all of the same filenames (copyright.htm) and then replace the 
> > year 2010 with 2011 in each file. Once I have a working script, I 
> > should be able to add it as a cron job to run on the first day of each 
> > new year.
>
> cd /your/www/directory 
> rm -rf copyright.htm

(A) doesn't do what the OP asked.
(B) doesn't do what you -think- it does. (i.e., it will delete at most one file)





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102161637.p1GGbUiC004819>