[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-newbie
Subject:    Re: Adding data to file name
From:       Jim Reimer <wa5rrh () arrl ! net>
Date:       2002-09-30 20:19:58
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic