Date: Sun, 14 Jun 1998 13:03:59 -0500 From: Dave Bender <bendede@startribune.com> To: "questions@FreeBSD.ORG" <questions@FreeBSD.ORG>, "'Ken McGlothlen'" <mcglk@serv.net> Subject: RE: Unix commands Message-ID: <01BD9794.F9ABC5E0@MANNY>
next in thread | raw e-mail | index | archive | help
Yours is the best one yet, Ken. Good suggestion. ---------- From: Ken McGlothlen Sent: Sunday, June 14, 1998 11:58 AM To: questions@FreeBSD.ORG Subject: Re: Unix commands drifter@stratos.net (drifter@stratos.net) writes: | On Sat, Jun 13, 1998 at 09:04:59AM -0500, Dave Bender wrote: | > One solution would be: | > | > $ date | awk '{print "mv yourfile $2.html"}' | sh | > [...] | | How about: | | $ mv yourfile `date | awk '{print $2$3-$4.html}'` | | or alternatively: | | $ mv yourfile $(date | awk '{print $2$3-$4.html}') | [...] You know, the FreeBSD date command does support a strftime capability, so it might be more straightforward to write mv yourfile `date "+yourfile.%m"` ---Ken 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?01BD9794.F9ABC5E0>