Date: Mon, 14 Feb 2011 17:11:19 -0600 From: Adam Vande More <amvandemore@gmail.com> To: "Jack L. Stone" <jacks@sage-american.com> Cc: freebsd-questions@freebsd.org Subject: Re: script help Message-ID: <AANLkTinJn7=BMwCvRyEUoNQz-fR4%2BacHmiQovfuZ%2B69G@mail.gmail.com> In-Reply-To: <3.0.1.32.20110214163437.019167e0@sage-american.com> References: <3.0.1.32.20110214163437.019167e0@sage-american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 14, 2011 at 4:34 PM, Jack L. Stone <jacks@sage-american.com>wrote: > Hello folks: > > No doubt this will be easy for those with scritping abilities. > > I have a gazillion files by the same name and each contains the same line > requiring the same change. But the problem is that they are in many > different directories on a server with numerous domains. While I could > handle the change using a single directory within my abilities, I'm unsure > how to do a search and replace throughout the many domains and their > directories. Don't want to mess up. Here's what I'm trying to do: > > # 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. > > Any help appreciated. > /usr/ports/misc/rpl -- Adam Vande More
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinJn7=BMwCvRyEUoNQz-fR4%2BacHmiQovfuZ%2B69G>