Shell script

Hi,

Below statement used in the script. But I did not understand this.Can you please explain with example.

attr_name == "suffix" && suffix = attr_val

This literally means, if value of attr_name is suffix then(&&) set suffix value to attr_val. Guess you would have a $ sign in the beginning. Anyway to be more clear post further lines of the code..

$attr_name == "suffix" && suffix = attr_val