Q:

Not able to append command line variable in shell script

Here is my code: 
export ALLOW_RPM_UPGRADE=True
path='/opt/rpm/latest/'
echo $1
file=$1
echo $file
dest=${path}${file}
echo $dest
cp $source $dest

Problem:

The three echo statements are printing the same value.  
The third one is not appending path to $dest variable.

A:

This is because I had created shell script on windows machine. Before executing it on linux we need to covert it through DOS2Unix utility. OR Just create shell script on Linux and save. 
After this it is working fine. 
Thanks  

