Date: Fri, 12 Jun 1998 15:30:46 -0400 (EDT) From: Chris Puccio <chrisp@liii.com> To: Design at Carolina Marketing <design@carolinamarketing.com> Cc: faq@FreeBSD.ORG Subject: Re: Unix commands Message-ID: <Pine.SUN.3.96.980612152700.8978A-100000@rowan.liii.com> In-Reply-To: <199806121758.LAA18763@carolmar.bluehill.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.96.980612152700.8978A-100000>