Problem in staring a file name to variable

Hi All,

I have a script in which i want to store my file name in a variable named "FILE", below is the approach i am using :

mydate=`date +%d%m%Y`
DATE=`date +%Y-%m-%d`
FILE=`"FOS_TSM_ZBH_TER_$mydate.csv"`
echo "$FILE"
echo "$mydate"

on executing the above script, i am getting :

b.sh: line 3: FOS_TSM_ZBH_TER_04092014.csv: command not found

Why am i getting "command not found" when i am not really executing a command, just trying to store name i a variable.

try

mydate=`date +%d%m%Y`
FILE="FOS_TSM_ZBH_TER_$mydate.csv"
echo $FILE
FOS_TSM_ZBH_TER_04092014.csv

Thanks Makarand,

Its working fine. Could you please also explain the reason for choosing ""

Because FOS_TSM_ZBH_TER_$mydate.csv is not command and is variable value
we generaly use ` ` to enclose unix command

Not 'generally' -- always. That's they're for. ` ` run the text they enclose as a command.