If someone can explain this to me I'd appreciate it. I've looked so long and tried so many different ways to correct this I'm afraid I'm just over looking the issue now. The different ways I've tried have all resulted in the same output. I'm trying to create a file name with the Date&Time. Code just below and then below that I'll show the output and would like to know why?
Output of "echo $myFl". It appears to over-write the previous values in the myFl assignment. Why? What am I doing wrong?
Code:
myDATE=`date '+%m%d%Y'` myTIME=`date '+%H%M%S'` myFl=$myDATE$myTIME".txt" echo $myFl
Code:
.txt2214
Comment