The UNIX and Linux Forums  

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



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-14-2008
kartikkumar84@g kartikkumar84@g is offline
Registered User
 

Join Date: May 2008
Posts: 16
Modifying a variable value

Hi all, how do i modify a variable's value.

var1='abcd efgh ijkl mnop abcd'

how do i get var2 from var1

var2=$(......)
$echo var2
abcd efgh ijkl mnop

i.e. i have removed a duplicate occurence.

or in general how to modify a varible.

thanks in advance
Reply With Quote
Forum Sponsor