Jump to content

Urgent Unix Doubt


Recommended Posts

Posted

string1="$str1"

string2="str2"

 

output=$str1str2    (concating string1 and string2 )

 

 

plx help 

how to achieve this

 

Posted

Nuvve answer cheppav kada mama.. Malli how to achieve enti.. Ento nuvvem adigavo naakem ardamaindo mottam confusion

Posted

string1="\$str1"

string2="str2"

 

you have to escape the $ sign with backslash

echo "$string1$string2"

Posted

 

string1="\$str1"

string2="str2"

 

you have to escape the $ sign with backslash

echo "$string1$string2"

 

Thanks Bro 

 

This is working

×
×
  • Create New...