[HPADM] Insert characters in middle of line

From: Naylor, Jim (Jnaylor_at_Schnucks.com)
Date: 12/10/03

  • Next message: Joe Brancaleone: "[HPADM] Memory checksum Errors in rp2470"
    To: "Hpux-Admin@Dutchworks. Nl (E-mail)" <hpux-admin@dutchworks.nl>
    Date: Wed, 10 Dec 2003 16:05:45 -0600
    
    

    Good Day All,
    I have the need to insert a string of characters/numbers in the middle of a
    record that is 240 characters long. Say I have the following filewith two
    records:

    zzzzzzzzzzzzzzzzzzzzzzzzzzzzwwwwwwwwwwwwwwwwwwwwwwwxxxxxxxxxxxxxxxxxxxxxxxxx
    xxyyyyyyyyyyyyyyyyyyyycccccccccccccccccccccbbbbbbbbbbbbbbbbbbbrrrrrrrrrrrrrr
    rrrrrrrrrrrnnnnnnnnnnnnnnnnnnnnnnkkkkkkkkkkkkkkk
    aaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccd
    ddddddddddddddddddddeeeeeeeeeeeeeeffffffffffffffgggggggggggggggggggggghhhhhh
    hhhhhhhhhhhhhhhhiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjjjjjjjjjjjjjjjjjjjjjj
    jjjjjjjjjjjjjjjjjjjjjjj

    I need to insert 00000 starting at position 120 on each record. So each
    record would be the same as it was befor but have the additional characters
    starting at 120. The result would look somewhat like this:

    zzzzzzzzzzzzzzzzzzzzzzzzzzzzwwwwwwwwwwwwwwwwwwwwwwwxxxxx00000xxxxxxxxxxxxxxx
    xxxxxxxyyyyyyyyyyyyyyyyyyyycccccccccccccccccccccbbbbbbbbbbbbbbbbbbbrrrrrrrrr
    rrrrrrrrrrrrrrrrnnnnnnnnnnnnnnnnnnnnnnkkkkkkkkkkkkkkk
    aaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccc00000ccccccccc
    ccccdddddddddddddddddddddeeeeeeeeeeeeeeffffffffffffffggggggggggggggggggggggh
    hhhhhhhhhhhhhhhhhhhhhiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjjjjjjjjjjjjjjjjj
    jjjjjjjjjjjjjjjjjjjjjjjjjjjj

    Any suggestions would be greatly appreciated.

    Thanks,
    Jim Naylor
    Unix Systems Administrator
    Schnuck Markets, Inc.
    * Direct: (314) 994-4784
    *)) Cell: (314) 691-0186
    * Fax : (314) 994-4684
    * jnaylor@schnucks.com

    --
                 ---> 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: Joe Brancaleone: "[HPADM] Memory checksum Errors in rp2470"