linux - Concatenation of strings in bash -


I'm having problems with the following script scripts trying to parse the version number from the WordPress Readme file.

  cat readme.txt | {When read-RABCD; If [$ {a} == "static"] and amp; Amp; [$ {B} == "tag:"]; Then version = "$ c" fi is finished. Version $ VERSION updated thanks to "$ echo $ out}"  

I hope the output

  is updated to version 1.15  

but actual output

  thanks for version 1.15  

Although 'thanks' is replacing the string's front , No clues being added in the end?

readme.txt and / or the dos line in your script is ending; The value of VERSION is a trailback return which affects the output.


Comments