Executed this script and output is added to repo. This script is written in python3.
cat input.txt | python3 script.py >output.txt
- Created chunk(a list) of lines on basis of */Asterisk appearance.
- Process and print each chunk as per requirement, making sure the numeric bullet and +/- code folding is in place.