This program will work where yours doesn't:
#!/bin/bash
version="1.0";
preffix="ApplicationName.";
for f in pack*;
do
echo "bla bla bla" > myFile.txt
echo $preffix >> myFile.txt
echo "more stuff" >> myFile.txt
echo $version >> myFile.txt
done;
Your affection for spaces makes your program more readable, and also makes it not work.
Also, while it doesn't matter for this program, it would be a really good idea to do this:
#!/bin/bash
version="1.0";
preffix="ApplicationName.";
for f in pack*;
do
echo "bla bla bla" > myFile.txt
echo "$preffix" >> myFile.txt
echo "more stuff" >> myFile.txt
echo "$version" >> myFile.txt
done;
This is because if you did something like:
version='1 2'
in your original program, you would end up with a somewhat unexpected result. Putting the quotes around your variables is a really good idea to prevent mysterious errors like that.
bash: =: command not found
errors? You really should pay attention to them.