title: bash command line append to variable will prepend instead
body: <p>in shell scripts I usually append a string to variable with "${variable} end". However, I have a file "file.txt" in which I want all lines to be appended by "end". So command line I do, for instance, <code>for i in `cat file.txt`; do echo "${i} end"; done</code>. But the word "end" (pluse the space) will not be appended but appended. The same thing happends when I use a while loop. Could anybody tell me what is going on right there? I am using GNU bash version 4.2.37 on LinuxMint13 64bit (both Cinammon and Mate). </p>
  
  <p>Thank you for any help!</p>