
Building a FileName Variable
Hi,
I am quite new to Unix (Korn Shell) scripting, having learned mostly
from looking at existing scripts.
I am working on a ksh script in which I would like to assign some string
values (including a date stamp) to a variable that will be used as a
file name. Here is what I want to do:
myfilename='string1' + date "+%EY%m%d" + '.txt'
The variable myfilename would hopefully become: 'string120010424.txt',
but I am not getting this result - I am aware that the plus(+) sign is
not the proper concatenation character but can't seem to find the right
one. I have checked the ksh man pages and searched deja.com but have not
been able to figure this out.
Any hints would be appreciated!
Thanks,
Dave
(Please respond to newsgroup only)