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 -->
  #5 (permalink)  
Old 06-01-2008
danmero danmero is online now Forum Advisor  
  
 

Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,428
You can retrieve (expand) variables value by enclosing the variable name in curly braces and preceding the left curly brace with a dollar sign, like that you eliminate the use of echo and backticks.
% will expand the variable removing the regexp(.tar.z) from the end of the variable value.

Regards,