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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-28-2008
smr_rashmy smr_rashmy is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 39
need help in shell scripting

Hi frnds,

Please help me with the following,

see the script below,

v1="Good"
v2="Morning"
v1="$v1 "
v2="$v2 "
v1=`"$v1" | cut -c1-10`
v2=`"$v2" | cut -c1-10`
echo $v1$v2

This thing is, i want to pring it like "Good Morning"

i need some specific gap in between.

or is there any other way to do this?

Thanks in advance,
Raja.