And why do you think python would be a good solution to this problem?
I'd use a printf/seq, join, sed pipeline.
Thanks I will look at this
]]>I'd use a printf/seq, join, sed pipeline.
]]>You say you do not know Python. Do you code in other languages?
]]>I/we may possibly guess what you really want but you should state your requirements more clearly.
You are right that is the reason why I am not able to figured it out since I am not even able to write the problem correctly...
Is it now clearer?
]]>How can I learn to do this automatically? What functions does that?
My input is this
Text-test_20230120_text-001.zip,output
Text-test_20230120_text-002.zip,output
Text-test_20230120_text-003.zip,output
Text-test_20230120_text-006.zip,output
Text-test_20230120_text-009.zip,output
Text-test_20230120_text-013.zip,output
Text-test_20230120_text-015.zip,output
The script should check for "continuity" 001-015 if 004 is missing add that line between 003 and 006 with .zip,input if 005 is missing do the same
I want to add lines between so output would be
Text-test_20230120_text-000.zip,input
Text-test_20230120_text-001.zip,output
Text-test_20230120_text-002.zip,output
Text-test_20230120_text-003.zip,output
Text-test_20230120_text-004.zip,input
Text-test_20230120_text-005.zip,input
Text-test_20230120_text-006.zip,output
Text-test_20230120_text-007.zip,input
Text-test_20230120_text-008.zip,input
Text-test_20230120_text-009.zip,output
Text-test_20230120_text-010.zip,input
Text-test_20230120_text-011.zip,input
Text-test_20230120_text-012.zip,input
Text-test_20230120_text-013.zip,output
Text-test_20230120_text-014.zip,input
Text-test_20230120_text-015.zip,output
Or is there any easy way how to do it?
]]>