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 03-27-2006
senthilk615 senthilk615 is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 16
split string help

could anyone help in running split cmd

split("String1,outputArray,"delimiter);
with sample script?.


for eg i have abc-def-ghi-sdf-

my ultimate aim of asking this is i have a string containing hypens,
i want to get the string before last n(2) Hypens

Last edited by senthilk615; 03-27-2006 at 06:10 PM..