Debian Codegraph @

scripts/vcffirstheader

raw
1 #!/usr/bin/env python3
2
3 import sys
4
5 header=True
6 for line in sys.stdin:
7 if line.startswith('##'):
8 if header:
9 print(line.strip())
10 continue
11 elif line.startswith('#'):
12 if header:
13 print(line.strip())
14 header=False
15 continue
16 print(line.strip())