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 > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-22-2008
ddreggors ddreggors is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 91
or you could set range to the variable not to the value contained in that variable :

Code:
:%s/RANGE/\${btch_range}/g
notice the "\" before the "$"

so before we have:
Code:
PARM1=RANGE
and after we have:

Code:
PARM1=${btch_range}
as long as this is inside a shell script, if it is in a conf file that will not expand the variable ${btch_range} (replace the variable with it's value when read) then the previous answer is what you want.