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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-26-2009
bdragon bdragon is offline
Registered User
  
 

Join Date: Jun 2009
Location: Tampa FL USA
Posts: 7
Or:

Code:
var1=$(echo $var1|tr -s '/' '~')

This should work in BASH or ksh.

Last edited by Yogesh Sawant; 06-30-2009 at 05:03 AM.. Reason: added code tags