This is the second input file:2021090701070100000000026048002210000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000020 +000000000000000000000000000000000000000000000000000000000000000000000 +00 1101010701051012345678900001088812345672000807777211001745480000027020 +000000000100000000000000640009000000000000100000000000000000000000099 +991000D00Z00000000000000000000000000000000000000000000000000000000000 +00 1101010701051012309876540001098765432102000807777201001628280000047020 +014600000100000000000000640002000000000000100000000000000000000000099 +991000D00J00000000000000000000000000000000000000000000000000000000000 +00 2021100701070100000000026048002210000000000700000000230000000000000000 +000000000000000000000000000002300000000000000000000000000000000000020 +000000000000000000000000000000000000000000000000000000000000000000000 +00
The output I expect to see is that the line where positions 14-16 starts "888" should have the extra rules applied and the one that has "987" should be transfered as is. In a perfect world this is the output I would expect to see:2021090701070100000000026048002210000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000020 +000000000000000000000000000000000000000000000000000000000000000000000 +00 11010107010510123456789000010888123456720008XX555211001745480000027020 +000000000100000000000000640009000000000000100000000000000000000000099 +991000D00Z00000000000000000000000000000000000000000000000000000000000 +00 1101010701051012309876540001098765432102000800000201001628280000047020 +014600000100000000000000640002000000000000100000000000000000000000099 +991000D00J00000000000000000000000000000000000000000000000000000000000 +00 2021100701070100000000026048002210000000000700000000230000000000000000 +000000000000000000000000000002300000000000000000000000000000000000020 +000000000000000000000000000000000000000000000000000000000000000000000 +00
Thanks for your help.2021090701070100F13000026048002210000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000020 +000000000000000000000000000000000000000000000000000000000000000000000 +00 1101xx07010510123456789000010888123456720008XX555211001745480000027020 +0xxx0000010000000000000064000x000000000xxx100000000000000000000000099 +991000D00x0000000000000000000000000000000000000xxxx000000000000000000 +00 1101010701051012309876540001098765432102000800000201001628280000047020 +014600000100000000000000640002000000000000100000000000000000000000099 +991000D00J00000000000000000000000000000000000000000000000000000000000 +00 2021100701070100F13000026048002210000000000700000000230000000000000000 +000000000000000000000000000002300000000000000000000000000000000000020 +000000000000000000000000000000000000000000000000000000000000000000000 +00
In reply to Re^8: Ignoring lines in flat text file
by sheasbys
in thread Ignoring lines in flat text file
by sheasbys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |