Created
August 1, 2017 19:00
-
-
Save stephenturner/4f0ee6be04d1c600200ca261aec4a1de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
header=True | |
for line in sys.stdin: | |
if line.startswith('##'): | |
if header: | |
print line.strip() | |
continue | |
elif line.startswith('#'): | |
if header: | |
print line.strip() | |
header=False | |
continue | |
print line.strip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment