The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: concat string
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-25-2006
Dhruva's Avatar
Dhruva Dhruva is offline
Registered User
  
 

Join Date: Mar 2006
Location: India
Posts: 255
try this. Wherever you want to use $c use "$c" it will retain the spaces.



a="HELLO "
b="WORLD "
c="$a$b"
echo "$c"

Last edited by Dhruva; 07-25-2006 at 07:20 AM..