From owner-freebsd-questions@FreeBSD.ORG Mon Feb 14 23:12:06 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83F961065674 for ; Mon, 14 Feb 2011 23:12:06 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 6B4378FC1E for ; Mon, 14 Feb 2011 23:12:06 +0000 (UTC) Received: from relay14.apple.com (relay14.apple.com [17.128.113.52]) by mail-out3.apple.com (Postfix) with ESMTP id 66F8ECF0FDEC; Mon, 14 Feb 2011 14:54:25 -0800 (PST) X-AuditID: 11807134-b7c40ae000006cb9-85-4d59b2a11119 Received: from cswiger1.apple.com (cswiger1.apple.com [17.209.4.71]) (using TLS with cipher AES128-SHA (AES128-SHA/128 bits)) (Client did not present a certificate) by relay14.apple.com (Apple SCV relay) with SMTP id C6.31.27833.1A2B95D4; Mon, 14 Feb 2011 14:54:25 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Chuck Swiger In-Reply-To: <3.0.1.32.20110214163437.019167e0@sage-american.com> Date: Mon, 14 Feb 2011 14:54:25 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <8C3904BF-434F-4515-BD04-018DC29F49C0@mac.com> References: <3.0.1.32.20110214163437.019167e0@sage-american.com> To: Jack L. Stone X-Mailer: Apple Mail (2.1082) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org Subject: Re: script help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 23:12:06 -0000 On Feb 14, 2011, at 2:34 PM, Jack L. Stone wrote: > # 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. find . -name copyright.htm -exec sed -i .BAK s/2010/2011/ {} \; Of course, a purely automated replacement of the year without making any = other change is likely considered "de minimus" from a copyright = perspective. You'd need to make a more substantial change involving = some original content for this to be genuinely meaningful.... Regards, --=20 -Chuck