[HPADM] [SUMMARY]Help with character replacement

From: Whittemore, Dale (dale.whittemore@lmco.com)
Date: Thu Jan 06 2005 - 12:55:23 EST


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)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:45 EDT