[HPADM] [SUMMARY]Help with character replacement

From: Whittemore, Dale (dale.whittemore_at_lmco.com)
Date: 01/06/05

  • Next message: Adams, John: "[HPADM] RE: External DVD for N4000"
    Date: Thu, 06 Jan 2005 10:55:23 -0700
    To: hpux-admin@dutchworks.nl
    
    

    I was right, there was a simple solution. (I have GOT to learn 'awk')
     
    Thanks to Jeft Lightner, Vince Taylor, and Marc Ahrendt
     
    solution:
     
    awk -F, '{print $1" ,"$2" "$3} filename
     
     
    Thanks guys
     
    Dale A. Whittemore
    Unix System Admin Senior
    Lockheed Martin Enterprise Information Systems
    Denver, Colorado

     
     
     
     
     
     
    There is probably a simple solution to this but I can't find it.
     
    I have a file in the format of:
     
    Lastname,Firstname,MI
    or
    Lastname,Firstname,
     
     I want to put a space between the first comma and the Firstname and change the second comma to a space.
     
    Any ideas?
     
    Thanks
     
    Dale A. Whittemore
    Unix System Admin, Senior
    Lockheed Martin Enterprise Information Systems
    Denver, Colorado

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Adams, John: "[HPADM] RE: External DVD for N4000"