GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Commands
Go To First  |  Previous Question  |  Next Question 
 Unix Commands  |  Question 72 of 73    Print  
How to concatenate two strings in UNIX
Please give me in detail the command for concatenating two strings in UNIX


  
Total Answers and Comments: 3 Last Update: November 27, 2008     Asked by: arunaresh 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: rahulashu
 
char1="rahul"
char2="chavan"

char3=$char1$char2

it  concatinate a  string in unix.

Above answer was rated as good by the following members:
UncaAlby
June 10, 2008 02:30:08   #1  
rahulashu Member Since: June 2008   Contribution: 4    

RE: How to concatenate two strings in UNIX
char1="rahul"
char2="chavan"

char3=$char1$char2

it  concatinate a  string in unix.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 12, 2008 07:55:05   #2  
rayudumca_9 Member Since: August 2008   Contribution: 1    

RE: How to concatenate two strings in UNIX
Pipe symbol between two strings.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
November 27, 2008 20:52:39   #3  
vnadipat Member Since: November 2008   Contribution: 3    

RE: How to concatenate two strings in UNIX
str1=abcdef
str2=ghijklm
echo ${str1}$str2    or
echo ${str1}ghijklm

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape