The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help with strings in shell CyberCop Shell Programming and Scripting 2 04-29-2008 03:07 PM
comparison of strings in unix shell scripting piscean_n Shell Programming and Scripting 1 01-11-2008 01:24 PM
Returning Strings from C program to Unix shell script venkatesh_sasi High Level Programming 24 11-28-2007 04:48 AM
Another 10 second question. Assigning 2 strings to one string. rorey_breaker Shell Programming and Scripting 1 09-07-2007 07:34 AM
shell program for sorting strings in an alphabetical order bp_vanarse Shell Programming and Scripting 1 10-25-2006 10:41 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-26-2005
fontana fontana is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 4
Smile How to concatenate two strings or several strings into one string in B-shell?

like connect "summer" and "winter" to "summerwinter"?
Can anybody help me? thanks a lot.
  #2 (permalink)  
Old 08-26-2005
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
Code:
#!/bin/sh

season1='summer'
season2='winter'

echo "[${season1}] + [${season2}] = [${season1}${season2}]"
  #3 (permalink)  
Old 08-26-2005
fontana fontana is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 4
Smile Thanks so much!!!

it works great.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0