Linux Newbie help
 help / color / mirror / Atom feed
From: Jim Reimer <wa5rrh@arrl.net>
To: Paul Kraus <pkraus@pelsupply.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: Adding data to file name
Date: Mon, 30 Sep 2002 15:19:58 -0500	[thread overview]
Message-ID: <3D98B1EE.6020907@arrl.net> (raw)
In-Reply-To: 001c01c268af$4412e650$64fea8c0@pkrausxp

Paul Kraus wrote:
> I have script that calls smbtar. Then for the output file I want it to
> display the date.
> 
> smbtar ..... -t "/home/pdk/backup.MM.DD.YY"
> 
> Where mm.dd.yy is current month date and year.
> 
> Paul Kraus
> Network Administrator
> PEL Supply Company
> 216.267.5775 Voice
> 216-267-6176 Fax
> www.pelsupply.com


dt=`date +%m.%d.%y`
smbtar ..... -t /home/pdk/backup${dt}

ought to work.

-jdr-




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      reply	other threads:[~2002-09-30 20:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-30 18:29 Adding data to file name Paul Kraus
2002-09-30 20:19 ` Jim Reimer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D98B1EE.6020907@arrl.net \
    --to=wa5rrh@arrl.net \
    --cc=linux-newbie@vger.kernel.org \
    --cc=pkraus@pelsupply.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox