Skip to contentSkip to conversation

Adding data to file name

DISCUSSION Paul Kraus 2 participants 2 messages Sep 30, 2002

lore
Share & tools
lore

Paul Kraus

author
#0 lore raw

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

BEGIN:VCARD
VERSION:2.1
N:Kraus;Paul
FN:Paul Kraus ([email protected])
ORG:PEL Supply Company
TITLE:Network Administrator
TEL;WORK;VOICE:(216) 267-5775
TEL;CELL;VOICE:(216) 410-5526
TEL;WORK;FAX:(216) 267-6176
ADR;WORK:;;4666 Manufacturing Road;Cleveland;Ohio;44135;United States of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:4666 Manufacturing Road=0D=0ACleveland, Ohio 44135=0D=0AUnited States of Ame= rica
ADR;HOME:;;;;;;United States
LABEL;HOME:United States
URL;WORK:http://www.pelsupply.com
EMAIL;PREF;INTERNET:[email protected]
REV:20020416T182124Z
END:VCARD

#1 lore raw
Quoted 5 lines · Paul Kraus

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"

Quoted 8 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs