in reply to Re: Copy data from one file and add it to another
in thread Copy data from one file and add it to another
I have two files one is a Text file where I have some different Patterns and another one is ASCII file where I have code to generate a test pattern. I need Perl Script where I can transfer data pattern to that ASCII file, after particular word "PI".
File 1-
Result is : 10000000 10000000 10000000 10000000 10000 +000 00000011 00000011 00000011 00000011 00000011 10000001 10000001 10000001 10000001 10000001 11000000 11000000 11000000 11000000 11000000 01100000 01100000 01100000 01100000 01100000
File 2-
CHAIN_TEST = pattern = 0; apply "grp1_load" 0 = chain "chain1" = "010"; end; force "PI" "XX0XXXXXX" 1; measure "PO" "XX" 2; apply "grp1_unload" 3 = chain "chain1" = "010"; end; pattern = 1; apply "grp1_load" 0 = chain "chain1" = "101"; end; force "PI" "XX0XXXXXX" 1; measure "PO" "XX" 2; apply "grp1_unload" 3 = chain "chain1" = "101"; end; end; SCAN_TEST = pattern = 0; apply "grp1_load" 0 = chain "chain1" = "010"; end; force "PI" "100000000" 1; measure "PO" "10" 2; pulse "/CK" 3; apply "grp1_unload" 4 = chain "chain1" = "010"; end;
2018-01-25 Athanasius added code and paragraph tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Copy data from one file and add it to another
by poj (Abbot) on Jan 24, 2018 at 11:06 UTC | |
by jumdesumit (Novice) on Feb 01, 2018 at 10:31 UTC |