The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Parse String from a Variable racbern Shell Programming and Scripting 3 04-07-2008 09:04 AM
How to check a string in the variable josephwong Shell Programming and Scripting 1 06-25-2006 09:14 PM
concatenating static string to records in data file gillbates Shell Programming and Scripting 5 06-22-2006 03:22 PM
parse a string variable methos Shell Programming and Scripting 3 10-18-2005 01:18 PM
how to cut a string from a variable kjaisan UNIX for Dummies Questions & Answers 2 10-30-2003 10:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-14-2007
Registered User
 

Join Date: Feb 2007
Posts: 7
concatenating string and variable

how to concatenate a string and variable like

a=rahul

and i want to put it into another variable 'b' as "rahul_prasath"

i dont want to use another variable for "_prasath"

how to do it?
Reply With Quote
Forum Sponsor
  #2  
Old 02-14-2007
Registered User
 

Join Date: Feb 2007
Posts: 7
a=unix
b="$a"admin
echo $b

u will get unixadmin.

i hope this will solve ur problem
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0