[HPADM] Insert characters in middle of line

From: Naylor, Jim (Jnaylor@Schnucks.com)
Date: Wed Dec 10 2003 - 17:05:45 EST


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)


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