The UNIX and Linux Forums  


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-15-2008
naikaa naikaa is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 2
replace last / by |

Hi:

I want to write a Kshell script which will replace last / by |.

eg: /home/apps/test/document should be replaced as /home/apps/test|document.

The length of the string is not constant.

Thanks,
Ash