From owner-freebsd-questions Fri Jun 12 12:31:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24240 for freebsd-questions-outgoing; Fri, 12 Jun 1998 12:31:51 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pine.liii.com (pine.liii.com [198.207.193.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24089 for ; Fri, 12 Jun 1998 12:31:00 -0700 (PDT) (envelope-from chrisp@liii.com) Received: from rowan.liii.com (chrisp@rowan.liii.com [198.207.193.5]) by pine.liii.com (8.8.6/8.8.5) with ESMTP id TAA11944; Fri, 12 Jun 1998 19:30:49 GMT Received: from localhost (chrisp@localhost) by rowan.liii.com (8.8.6/8.8.4) with SMTP id PAA09140; Fri, 12 Jun 1998 15:30:47 -0400 (EDT) X-Authentication-Warning: rowan.liii.com: chrisp owned process doing -bs Date: Fri, 12 Jun 1998 15:30:46 -0400 (EDT) From: Chris Puccio To: Design at Carolina Marketing cc: faq@FreeBSD.ORG Subject: Re: Unix commands In-Reply-To: <199806121758.LAA18763@carolmar.bluehill.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Here is a *simple* shell script to print out the 'month'.html. Modify to your needs. -- cut here -- #!/bin/sh file=`date +"%h.html"` printf $file -- cut here -- paste that to a file, save it, chmod it +x, and run it. -- Chris Puccio. On Fri, 12 Jun 1998, Design at Carolina Marketing wrote: > Hello, > > I am new to Unix and I am looking for a command that will allow me to > rename(mv) a file according to what month it is. I thought i remember > reading something like [mv $.html], but i can't find it now. This is to > rename a generated page produced by a cron file. > > Thank you, > > James > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message