Hi there,
I've the following issue with one of my script.
Here is the script:
Code:
#! /bin/bash
for filename in $( cat /path_of_the_file/list_a ); do
echo FileVersion /path_of_the_file/${filename}.ver.tmp
done
exit
the file
list_a look like this:
Code:
myfile1.dll
myfile2.dll
ect...
but when i execute my script in get the following output:
Code:
./myscript
.ver.tmpion /path_of_the_file/myfile1.dll
But if i type the command line
echo FileVersion /path_of_the_file/myfile1.dll.ver.tmp in the command line with out using any variable it work fine and i get the following output:
Code:
echo FileVersion /path_of_the_file/myfile1.dll.ver.tmp
FileVersion /path_of_the_file/myfile1.dll.ver.tmp
I don't understand why the expression
.var.tmp is displayed at the beginning of the line.
I have try to escape the dot like this:
Code:
#! /bin/bash
for filename in $( cat /path_of_the_file/list_a ); do
echo FileVersion /path_of_the_file/${filename}\.ver\.tmp
done
exit
But it's the same issue.
Any idea???