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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-14-2008
penchal_boddu penchal_boddu is offline
Registered User
 

Join Date: Apr 2008
Location: Bangalore
Posts: 120
Hi ,

Try this

$str="h t t p://abc.def.com/hijklm";
@arr=split(/\//,$str);
print $arr[3];


Thanks
Penchal
Reply With Quote