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 -->
  #4 (permalink)  
Old 03-08-2007
ghostdog74 ghostdog74 is offline
Registered User
 

Join Date: Sep 2006
Posts: 1,582
if you have Python, here's an alternative:
Code:
#!/usr/bin/python
s = "name is Earl:My name is Dorothy:My name is Bernard:"
for item in s.split(":"):
    print item
Reply With Quote