Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string concatenation

Status
Not open for further replies.

pho01

Programmer
Mar 17, 2003
218
US
in shell script,
if I have
STRING1="test1"
STRING2="test2"

how do I combine 2 strings so
STRING3="test1test2"
thanks
 
Try this:

STRING3="${STRING1}${STRING2}"



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top