|
From: injam4u on 25 Jun 2008 04:57 Hi , i have the two files namely 1.txt and injam.rpl and the content is as follows P0000000100000 P0000000200001 P0000000300004 P0000000400006 P0000000500008 P0000000600011 P0000000700015 P0000000800016 P0000000900018 P0000001000020 swadmin(a)tb142:/home/swadmin/injam> head 1.txt 0001281800174P00000003D - ATPNB054427732TPNB056439191 0001281800174P00000004D - BTPNB050568853TPNB056600783 0001281800174P30000329D - ATPNB054427732TPNB056600783 0001281800174P40000079D - ATPNB054427732TPNB056600783 0001281800174P60000079D - BTPNB050568853TPNB056439191 0001281800174P60000329D - BTPNB050568853TPNB056439191 swadmin(a)tb142:/home/swadmin/injam> The data in 1.txt from character 14-22 is same as data in injam.rpl from character 1-9. Now i want the field in injam.rpl starts at character 10-15 needs to be inserted in every line of 1.txt if the characters 14-22 in 1.txt and characters 1-9 in injam.rpl are same. please help me Many thanks Injam
From: Richard B. Gilbert on 25 Jun 2008 08:24 injam4u(a)gmail.com wrote: > Hi , > > i have the two files namely 1.txt and injam.rpl and the content is as > follows > P0000000100000 > P0000000200001 > P0000000300004 > P0000000400006 > P0000000500008 > P0000000600011 > P0000000700015 > P0000000800016 > P0000000900018 > P0000001000020 > swadmin(a)tb142:/home/swadmin/injam> head 1.txt > 0001281800174P00000003D - ATPNB054427732TPNB056439191 > 0001281800174P00000004D - BTPNB050568853TPNB056600783 > 0001281800174P30000329D - ATPNB054427732TPNB056600783 > 0001281800174P40000079D - ATPNB054427732TPNB056600783 > 0001281800174P60000079D - BTPNB050568853TPNB056439191 > 0001281800174P60000329D - BTPNB050568853TPNB056439191 > swadmin(a)tb142:/home/swadmin/injam> > > The data in 1.txt from character 14-22 is same as data in injam.rpl > from character 1-9. > Now i want the field in injam.rpl starts at character 10-15 needs to > be inserted in every line of 1.txt if the characters 14-22 in 1.txt > and characters 1-9 in injam.rpl are same. > > > please help me > > > Many thanks > Injam Another person who wants us to do his school work?
|
Pages: 1 Prev: [SVOSUG] Summer Thinktank, give your input, 06/26 Next: 2 node cluster down and can't boot |